OrangePi_CM5/drivers/misc/cardreader
Christophe JAILLET 2593f971f0 misc: rtsx: Fix an error handling path in rtsx_pci_probe()
[ Upstream commit 44fd1917314e9d4f53dd95dd65df1c152f503d3a ]

If an error occurs after a successful idr_alloc() call, the corresponding
resource must be released with idr_remove() as already done in the .remove
function.

Update the error handling path to add the missing idr_remove() call.

Fixes: ada8a8a13b ("mfd: Add realtek pcie card reader driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/e8dc41716cbf52fb37a12e70d8972848e69df6d6.1655271216.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-21 15:15:55 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile misc: rtsx: Add support new chip rts5228 mmc: rtsx: Add support MMC_CAP2_NO_MMC 2020-07-10 14:58:47 +02:00
alcor_pci.c misc: alcor_pci: Fix an error handling path 2022-04-08 14:40:24 +02:00
rtl8411.c misc: rtsx: Remove rtsx_pci_read/write_config() wrappers 2020-07-22 13:29:44 +02:00
rts5209.c misc: rtsx: Remove rtsx_pci_read/write_config() wrappers 2020-07-22 13:29:44 +02:00
rts5227.c misc: rtsx: init of rts522a add OCP power off when no card is present 2021-03-04 11:38:32 +01:00
rts5228.c misc: rtsx: Fix power down flow 2020-09-16 17:30:37 +02:00
rts5228.h misc: rtsx: Add support new chip rts5228 mmc: rtsx: Add support MMC_CAP2_NO_MMC 2020-07-10 14:58:47 +02:00
rts5229.c misc: rtsx: Remove rtsx_pci_read/write_config() wrappers 2020-07-22 13:29:44 +02:00
rts5249.c misc: rtsx: Add power saving functions and fix driving parameter 2020-09-16 17:30:37 +02:00
rts5260.c misc: rtsx: Add power saving functions and fix driving parameter 2020-09-16 17:30:37 +02:00
rts5260.h
rts5261.c misc: rtsx: Use standard PCI definitions 2020-07-22 13:39:31 +02:00
rts5261.h misc: rtsx: Add support for RTS5261 2019-11-14 13:07:48 +08:00
rtsx_pcr.c misc: rtsx: Fix an error handling path in rtsx_pci_probe() 2022-08-21 15:15:55 +02:00
rtsx_pcr.h misc: rtsx: Add power saving functions and fix driving parameter 2020-09-16 17:30:37 +02:00
rtsx_usb.c misc: rtsx_usb: set return value in rsp_buf alloc err path 2022-07-12 16:32:22 +02:00