diff options
| author | Tejun Heo <[email protected]> | 2010-05-01 08:11:35 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2010-05-01 11:11:25 +0000 |
| commit | 048c852051d2bd5da54a4488bc1f16b0fc74c695 (patch) | |
| tree | c1482ae433455c1aa5f2f20c68773f79b60881c8 /drivers/mtd/lpddr/lpddr_cmds.c | |
| parent | Linux 2.6.34-rc6 (diff) | |
| download | kernel-048c852051d2bd5da54a4488bc1f16b0fc74c695.tar.gz kernel-048c852051d2bd5da54a4488bc1f16b0fc74c695.zip | |
perf: Fix resource leak in failure path of perf_event_open()
perf_event_open() kfrees event after init failure which doesn't
release all resources allocated by perf_event_alloc(). Use
free_event() instead.
Signed-off-by: Tejun Heo <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions
