aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-11-09 14:40:36 +0800
committerGreg Kroah-Hartman <[email protected]>2022-11-09 15:12:37 +0100
commite63e99397b2613d50a5f4f02ed07307e67a190f1 (patch)
tree976a0665237db0a9a86706b095487a054b3d8ef5 /tools/perf/scripts/python/intel-pt-events.py
parent30a0b95b1335e12efef89dd78518ed3e4a71a763 (diff)
drivers: dio: fix possible memory leak in dio_init()
If device_register() returns error, the 'dev' and name needs be freed. Add a release function, and then call put_device() in the error path, so the name is freed in kobject_cleanup() and to the 'dev' is freed in release function. Fixes: 2e4c77bea3d8 ("m68k: dio - Kill warn_unused_result warnings") Fixes: 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array") Signed-off-by: Yang Yingliang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions