diff options
author | Gabor Juhos <j4g8y7@gmail.com> | 2025-09-03 13:56:24 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-09-03 14:49:58 +0100 |
commit | 1991a458528588ff34e98b6365362560d208710f (patch) | |
tree | d6e635f468651f0d5a4c0880f7eb54a730ec410d /scripts/generate_rust_target.rs | |
parent | 4de51e81379aa3acbceddb7aec18a36b733fb6cb (diff) |
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: 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>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions