Re: __hw_perf_counter_init() on x86

From: David Miller
Date: Wed Sep 09 2009 - 04:29:57 EST


From: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Date: Wed, 09 Sep 2009 10:04:47 +0200

> Subject: perf_counter: x86: Fix PMU resource leak
>
> Dave noticed that we leak the PMU resource reservations when we fail the
> hardware counter init.
>
> Reported-by: David Miller <davem@xxxxxxxxxxxxx>
> Signed-off-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>

Looks great.

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/