aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-11-15 09:19:45 +0000
committerRafael J. Wysocki <[email protected]>2022-11-25 18:51:41 +0000
commit4748f9687caaeefab8578285b97b2f30789fc4b4 (patch)
tree7bd30f76f03967efa2c2abc4e6176e7f31555a37 /tools/perf/scripts/python/mem-phys-addr.py
parentthermal/core: Protect thermal device operations against thermal device removal (diff)
downloadkernel-4748f9687caaeefab8578285b97b2f30789fc4b4.tar.gz
kernel-4748f9687caaeefab8578285b97b2f30789fc4b4.zip
thermal: core: fix some possible name leaks in error paths
In some error paths before device_register(), the names allocated by dev_set_name() are not freed. Move dev_set_name() front to device_register(), so the name can be freed while calling put_device(). Fixes: 1dd7128b839f ("thermal/core: Fix null pointer dereference in thermal_release()") Signed-off-by: Yang Yingliang <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions