linux/arch/mips/sgi-ip27
Lin Yujun 11bec9cba4 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: 5dc76a96e9 ("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>
2022-09-19 16:33:27 +02:00
..
ip27-berr.c MIPS: Allow modules to set board_be_handler 2021-11-09 16:07:26 +01:00
ip27-common.h MIPS: SGI-IP27: Store cpu speed when scanning for CPUs and use it later 2020-01-09 15:30:06 -08:00
ip27-console.c MIPS: SGI-IP27: Move all shared IP27 declarations to ip27-common.h 2020-01-09 15:30:03 -08:00
ip27-hubio.c MIPS: SGI-IP27: Use union instead of typedef 2020-01-09 15:29:58 -08:00
ip27-init.c mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
ip27-irq.c mips: Bulk conversion to generic_handle_domain_irq() 2021-08-12 11:39:40 +01:00
ip27-klconfig.c MIPS: SGI-IP27: use cpu physid already present while scanning for CPUs 2020-01-09 15:29:46 -08:00
ip27-klnuma.c MIPS: SGI-IP27: Move all shared IP27 declarations to ip27-common.h 2020-01-09 15:30:03 -08:00
ip27-memory.c MIPS: Fix build error for loongson64 and sgi-ip27 2022-03-24 09:45:15 +01:00
ip27-nmi.c MIPS: SGI-IP27: get rid of asm/sn/sn0/ip27.h 2020-01-09 15:29:51 -08:00
ip27-reset.c MIPS: SGI-IP27: use asm/sn/agent.h for including HUB related stuff 2020-01-09 15:29:50 -08:00
ip27-smp.c MIPS: SGI-IP27: Store cpu speed when scanning for CPUs and use it later 2020-01-09 15:30:06 -08:00
ip27-timer.c MIPS: SGI-IP27: fix spelling in Copyright 2021-03-06 08:43:39 +01:00
ip27-xtalk.c MIPS: SGI-IP27: Fix platform-device leak in bridge_platform_create() 2022-09-19 16:33:27 +02:00
Kconfig MIPS: SGI-IP27: fix exception handler replication 2019-10-31 15:19:59 -07:00
Makefile MIPS: SGI-IP27: rework HUB interrupts 2019-02-19 12:46:03 -08:00
Platform MIPS: Only include the platform file needed 2020-05-13 00:17:18 +02:00