aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorLin Yujun <linyujun809@huawei.com>2022-09-14 11:28:07 +0800
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2022-09-19 16:32:54 +0200
commit1e6d11fe72e311c1989991ee318d239f650fa318 (patch)
tree6feefbe28b3f2bb94c9898614bf6a53b2641a09e /tools/perf/scripts/python/export-to-sqlite.py
parent0153682e9e6accd1796dd6bbe9df792d03d88b1f (diff)
MIPS: SGI-IP30: Fix platform-device leak in bridge_platform_create()
In error case in bridge_platform_create after calling platform_device_add()/platform_device_add_data()/ platform_device_add_resources(), release the failed 'pdev' or it will be leak, call platform_device_put() to fix this problem. Besides, 'pdev' is divided into 'pdev_wd' and 'pdev_bd', use platform_device_unregister() to release sgi_w1 resources when xtalk-bridge registration fails. Fixes: fd27234f24ae ("MIPS: add support for SGI Octane (IP30)") Signed-off-by: Lin Yujun <linyujun809@huawei.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions