Files
linux/drivers/spi
Gabor Juhos 1991a45852 spi: spi-qpic-snand: unregister ECC engine on probe error and device remove
The on-host hardware ECC engine remains registered both when
the spi_register_controller() function returns with an error
and also on device removal.

Change the qcom_spi_probe() function to unregister the engine
on the error path, and add the missing unregistering call to
qcom_spi_remove() to avoid possible use-after-free issues.

Fixes: 7304d19090 ("spi: spi-qpic: add driver for QCOM SPI NAND flash Interface")
Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
Message-ID: <20250903-qpic-snand-unregister-ecceng-v1-1-ef5387b0abdc@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2025-09-03 14:49:58 +01:00
..
2025-07-07 16:12:21 +01:00
2025-07-24 22:32:27 +01:00
2025-07-24 22:32:27 +01:00
2024-10-07 14:53:15 +01:00
2024-10-07 14:53:15 +01:00
2025-02-03 19:24:44 +00:00
2024-09-30 01:12:21 +02:00
2024-12-09 13:14:36 +00:00
2024-10-07 14:53:15 +01:00
2024-10-07 14:53:15 +01:00
2024-09-30 01:12:21 +02:00
2024-09-30 22:43:40 +01:00
2025-07-07 16:12:21 +01:00
2024-10-07 14:53:15 +01:00