aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorStephane Eranian <[email protected]>2010-03-17 23:21:01 +0200
committerIngo Molnar <[email protected]>2010-03-18 18:39:40 +0100
commit4b24a88b35e15e04bd8f2c5dda65b5dc8ebca05f (patch)
tree82d38330852a4761794875d431c39f522bae95c8 /include/linux
parentcb7d6b5053e86598735d9af19930f5929f007b7f (diff)
perf_events: Fix resource leak in x86 __hw_perf_event_init()
If reserve_pmc_hardware() succeeds but reserve_ds_buffers() fails, then we need to release_pmc_hardware. It won't be done by the destroy() callback because we return before setting it in case of error. Signed-off-by: Stephane Eranian <[email protected]> Cc: <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> -- arch/x86/kernel/cpu/perf_event.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions