[PATCH RESEND] mtd:spi-nor: Fix an issue of releasing resources during read/write
Tudor Ambarus
tudor.ambarus at microchip.com
Sun Apr 11 08:45:05 BST 2021
On Thu, 1 Apr 2021 15:34:46 +0800, Yicong Yang wrote:
> If rmmod the driver during read or write, the driver will release the
> resources which are used during read or write, so it is possible to
> refer to NULL pointer.
>
> Use the testcase "mtd_debug read /dev/mtd0 0xc00000 0x400000 dest_file &
> sleep 0.5;rmmod spi_hisi_sfc_v3xx.ko", the issue can be reproduced in
> hisi_sfc_v3xx driver.
>
> [...]
Updated subject, added fixes tag and cc to stable.
Applied to spi-nor/next, thanks!
[1/1] mtd:spi-nor: Fix an issue of releasing resources during read/write
https://git.kernel.org/mtd/c/be94215be1ab
Best regards,
--
Tudor Ambarus <tudor.ambarus at microchip.com>
More information about the linux-mtd
mailing list