On 9/3/25 1:56 PM, Gabor Juhos wrote: > 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@xxxxxxxxx> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx> Konrad