android_kernel_xiaomi_sm7250/drivers/misc/cardreader
Christophe JAILLET 5a52c24a2b 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-25 11:15:15 +02:00
..
Kconfig
Makefile
rtl8411.c
rts5209.c
rts5227.c misc: rtsx: init of rts522a add OCP power off when no card is present 2021-03-04 09:39:54 +01:00
rts5229.c
rts5249.c
rts5260.c
rts5260.h
rtsx_pcr.c misc: rtsx: Fix an error handling path in rtsx_pci_probe() 2022-08-25 11:15:15 +02:00
rtsx_pcr.h
rtsx_usb.c misc: rtsx_usb: set return value in rsp_buf alloc err path 2022-07-12 16:29:03 +02:00