WSL2-Linux-Kernel/arch/mips/sgi-ip30
Lin Yujun 1e6d11fe72 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: fd27234f24 ("MIPS: add support for SGI Octane (IP30)")
Signed-off-by: Lin Yujun <linyujun809@huawei.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2022-09-19 16:32:54 +02:00
..
Makefile MIPS: add support for SGI Octane (IP30) 2019-11-01 14:58:56 -07:00
Platform MIPS: Only include the platform file needed 2020-05-13 00:17:18 +02:00
ip30-common.h MIPS: SGI-IP30: Move irq bits to better header files 2020-09-21 22:15:49 +02:00
ip30-console.c MIPS: add support for SGI Octane (IP30) 2019-11-01 14:58:56 -07:00
ip30-irq.c mips: Bulk conversion to generic_handle_domain_irq() 2021-08-12 11:39:40 +01:00
ip30-power.c MIPS: add support for SGI Octane (IP30) 2019-11-01 14:58:56 -07:00
ip30-setup.c memblock: rename memblock_free to memblock_phys_free 2021-11-06 13:30:41 -07:00
ip30-smp.c MIPS: add support for SGI Octane (IP30) 2019-11-01 14:58:56 -07:00
ip30-timer.c MIPS: add support for SGI Octane (IP30) 2019-11-01 14:58:56 -07:00
ip30-xtalk.c MIPS: SGI-IP30: Fix platform-device leak in bridge_platform_create() 2022-09-19 16:32:54 +02:00