diff options
author | Nishanth Aravamudan <[email protected]> | 2010-09-15 08:05:47 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <[email protected]> | 2010-10-13 16:19:21 +1100 |
commit | edea8f6f48416d9a6fd1babb76c19cf05c802325 (patch) | |
tree | 07e531b594c3493206d119fd068aa2e5f902e97c /tools/perf/util/trace-event-scripting.c | |
parent | ffa56e555a6e4c205e879636e6cd6104ce03421f (diff) |
powerpc/vio: Use put_device() on device_register failure
The kernel doc for device_register (and device_initialize) very clearly
state to call put_device not kfree after calling, even on error.
Signed-off-by: Milton Miller <[email protected]>
Signed-off-by: Nishanth Aravamudan <[email protected]>
Acked-by: Grant Likely <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions