In the Linux kernel, the following vulnerability has been resolved: spi: spi-qpic-snand: unregister ECC engine on probe error and device remove The on-host hardware ECC engine remains registered both when the spiregistercontroller() function returns with an error and also on device removal. Change the qcomspiprobe() function to unregister the engine on the error path, and add the missing unregistering call to qcomspiremove() to avoid possible use-after-free issues.