aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-07-01 17:43:52 +0800
committerRafael J. Wysocki <[email protected]>2022-07-01 21:09:20 +0200
commit54872fea6a5ac967ec2272aea525d1438ac6735a (patch)
tree36d8ae65dc5a058c7652bdbe4e9be546bd7163c8 /tools/perf/scripts/python
parentd6fb6ee1820cb9c49717b8d28c5b2e940cb2e439 (diff)
bus: hisi_lpc: fix missing platform_device_put() in hisi_lpc_acpi_probe()
In error case in hisi_lpc_acpi_probe() after calling platform_device_add(), hisi_lpc_acpi_remove() can't release the failed 'pdev', so it will be leak, call platform_device_put() to fix this problem. I'v constructed this error case and tested this patch on D05 board. Fixes: 99c0228d6ff1 ("HISI LPC: Re-Add ACPI child enumeration support") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Yang Yingliang <[email protected]> Acked-by: John Garry <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions