summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorGabor Juhos <j4g8y7@gmail.com>2025-09-03 13:56:24 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-09-09 19:02:39 +0200
commite4de48e66af17547727bb2e4b1867952817edff7 (patch)
tree986ad01307fd42ee794c04efba973d0e689a1928 /include/net/aligned_data.h
parent94ed86f35712cc411046a85634a907b39f0dbe28 (diff)
spi: spi-qpic-snand: unregister ECC engine on probe error and device remove
[ Upstream commit 1991a458528588ff34e98b6365362560d208710f ] 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: 7304d1909080 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions