summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLin Yujun <linyujun809@huawei.com>2022-09-14 11:29:17 +0800
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2022-09-19 16:33:27 +0200
commit11bec9cba4de06b3c0e9e4041453c2caaa1cbec1 (patch)
treeaaf3114195496d90e3b0bdee50e0a7ba81a18c90 /drivers
parent1e6d11fe72e311c1989991ee318d239f650fa318 (diff)
MIPS: SGI-IP27: 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: 5dc76a96e95a ("MIPS: PCI: use information from 1-wire PROM for IOC3 detection") Signed-off-by: Lin Yujun <linyujun809@huawei.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions