Home
last modified time | relevance | path

Searched hist:"1 e6d11fe72e311c1989991ee318d239f650fa318" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/mips/sgi-ip30/
H A Dip30-xtalk.cdiff 1e6d11fe72e311c1989991ee318d239f650fa318 Wed Sep 14 05:28:07 CEST 2022 Lin Yujun <linyujun809@huawei.com> 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>