linux-stable/drivers/memory
Johan Hovold c089ffc846 memory: renesas-rpc-if: fix platform-device leak in error path
commit b452dbf24d upstream.

Make sure to free the flash platform device in the event that
registration fails during probe.

Fixes: ca7d8b980b ("memory: add Renesas RPC-IF driver")
Cc: stable@vger.kernel.org      # 5.8
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20220303180632.3194-1-johan@kernel.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-20 09:23:26 +02:00
..
samsung memory: samsung: exynos5422-dmc: handle clk_set_parent() failure 2021-05-14 09:50:19 +02:00
tegra memory: tegra: Fix compilation warnings on 64bit platforms 2021-07-25 14:36:14 +02:00
.gitignore
atmel-ebi.c memory: atmel-ebi: Fix missing of_node_put in atmel_ebi_probe 2022-04-20 09:23:10 +02:00
atmel-sdramc.c
brcmstb_dpfe.c
bt1-l2-ctl.c
da8xx-ddrctl.c
emif-asm-offsets.c
emif.c memory: emif: check the pointer temp in get_device_details() 2022-04-08 14:40:09 +02:00
emif.h
fsl-corenet-cf.c
fsl_ifc.c memory: fsl_ifc: fix leak of irq and nand_irq in fsl_ifc_ctrl_probe 2021-11-18 14:04:16 +01:00
jedec_ddr.h
jedec_ddr_data.c
jz4780-nemc.c memory: jz4780_nemc: Fix an error pointer vs NULL check in probe() 2020-12-30 11:54:27 +01:00
Kconfig
Makefile
mtk-smi.c memory: mtk-smi: Fix PM usage counter unbalance in mtk_smi ops 2021-03-04 11:37:22 +01:00
mvebu-devbus.c
of_memory.c
of_memory.h
omap-gpmc.c memory: gpmc: fix out of bounds read and dereference on gpmc_cs[] 2021-05-14 09:50:06 +02:00
pl172.c amba: Make the remove callback return void 2022-04-08 14:40:02 +02:00
pl353-smc.c amba: Make the remove callback return void 2022-04-08 14:40:02 +02:00
renesas-rpc-if.c memory: renesas-rpc-if: fix platform-device leak in error path 2022-04-20 09:23:26 +02:00
stm32-fmc2-ebi.c memory: stm32-fmc2-ebi: add missing of_node_put for loop iteration 2021-07-20 16:05:54 +02:00
ti-aemif.c memory: ti-aemif: Drop child node when jumping out loop 2021-03-04 11:37:25 +01:00
ti-emif-pm.c
ti-emif-sram-pm.S