WSL2-Linux-Kernel/arch/powerpc/platforms/83xx
Yang Yingliang 65d3469f3b powerpc/83xx/mpc832x_rdb: call platform_device_put() in error case in of_fsl_spi_probe()
[ Upstream commit 4d0eea4152 ]

If platform_device_add() is not called or failed, it can not call
platform_device_del() to clean up memory, it should call
platform_device_put() in error case.

Fixes: 26f6cb9993 ("[POWERPC] fsl_soc: add support for fsl_spi")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221029111626.429971-1-yangyingliang@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:14:35 +01:00
..
Kconfig Kconfig file consolidation for v4.21 2018-12-29 13:40:29 -08:00
Makefile powerpc: remove retired sbc834x support 2018-05-03 22:32:30 +10:00
asp834x.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
km83xx.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
mcu_mpc8349emitx.c powerpc: Use simple i2c probe function 2020-09-02 11:00:20 +10:00
misc.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
mpc83xx.h powerpc/83xx: Fix build error when CONFIG_PCI=n 2021-02-11 23:28:51 +11:00
mpc830x_rdb.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
mpc831x_rdb.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
mpc832x_mds.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
mpc832x_rdb.c powerpc/83xx/mpc832x_rdb: call platform_device_put() in error case in of_fsl_spi_probe() 2022-12-31 13:14:35 +01:00
mpc834x_itx.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
mpc834x_mds.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
mpc836x_mds.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
mpc836x_rdk.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
mpc837x_mds.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
mpc837x_rdb.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
suspend-asm.S powerpc/83xx: Blacklist mpc83xx_deep_resume() for kprobe 2020-06-02 20:59:09 +10:00
suspend.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
usb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00