linux/drivers/misc/cardreader
Gleb Markov 655faba1cc misc: rtsx: add missing write register handling
If an error occurs at the stage of working with registers in conjunction
with MCU_Block, it will not be processed.

The occurrence of errors at this stage may signal an impact on writes to
the device's PCI registers and is a more global problem than a
driver-level security problem, but adding a handler would be a good
practice.

Add a missing error handling.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: c0e5f4e73a ("misc: rtsx: Add support for RTS5261")
Signed-off-by: Gleb Markov <markov.gi@npc-ksb.ru>
Link: https://patch.msgid.link/20260629130920.1260-1-markov.gi@npc-ksb.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-07-17 15:49:57 +02:00
..
alcor_pci.c misc: cardreader: Return -EBUSY if regions are busy 2025-04-25 15:54:08 +02:00
Kconfig misc: rtsx: list supported models in Kconfig help 2024-10-18 13:40:17 +02:00
Makefile misc: rtsx: add to support new card reader rts5264 new definition and function 2023-12-15 17:27:04 +01:00
rtl8411.c misc: rtsx: Quiesce rts5249 on system suspend 2022-01-26 18:53:28 +01:00
rts5209.c misc: rtsx: Quiesce rts5249 on system suspend 2022-01-26 18:53:28 +01:00
rts5227.c misc: rtsx_pci: Add separate CD/WP pin polarity reversal support 2025-08-19 12:37:10 +02:00
rts5228.c misc: rtsx_pci: Add separate CD/WP pin polarity reversal support 2025-08-19 12:37:10 +02:00
rts5228.h
rts5229.c misc: rtsx: Quiesce rts5249 on system suspend 2022-01-26 18:53:28 +01:00
rts5249.c misc: rtsx_pci: Add separate CD/WP pin polarity reversal support 2025-08-19 12:37:10 +02:00
rts5260.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-09-25 10:48:19 +02:00
rts5260.h
rts5261.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-09-25 10:48:19 +02:00
rts5261.h
rts5264.c misc: rtsx_pci: Add separate CD/WP pin polarity reversal support 2025-08-19 12:37:10 +02:00
rts5264.h misc: rtsx_pci: Add separate CD/WP pin polarity reversal support 2025-08-19 12:37:10 +02:00
rtsx_pcr.c misc: rtsx: add missing write register handling 2026-07-17 15:49:57 +02:00
rtsx_pcr.h misc: rtsx_pci: Add separate CD/WP pin polarity reversal support 2025-08-19 12:37:10 +02:00
rtsx_usb.c misc: rtsx: usb card reader: add OCP support 2025-08-19 14:34:15 +02:00