diff options
author | Vasiliy Kulikov <[email protected]> | 2010-11-19 21:41:58 +0300 |
---|---|---|
committer | Anton Vorontsov <[email protected]> | 2010-12-22 02:39:55 +0300 |
commit | 3a2dbd611b38cf9a026c0099a85701ad183d1949 (patch) | |
tree | b6d181ab33effdcd0e0466ee583c0e224563e372 /tools/perf/util/trace-event-scripting.c | |
parent | 26eb387265872b59566ddeed5e9bf142a6b9ff5b (diff) |
power_supply: Fix use after free and memory leak
device_unregister() might free its argument. This leads to freed
memory use in kfree(). Also use put_device() instead of kfree()
as dev may be already used in another layer after call to device_add().
Signed-off-by: Vasiliy Kulikov <[email protected]>
Signed-off-by: Anton Vorontsov <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions