[PATCH next] mtd: spi-nor: hisi-sfc: fix refcounting bug in hisi_spi_nor_register_all()
Pratyush Yadav
pratyush at kernel.org
Fri Feb 6 06:14:46 PST 2026
On Fri, Feb 06 2026, Dan Carpenter wrote:
> This was converted to a _scoped() loop but this of_node_put() was
> accidentally left behind which is a double free.
>
> Fixes: aa8cb72c2018 ("mtd: spi-nor: hisi-sfc: Simplify with scoped for each OF child loop")
> Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>
Reviewed-by: Pratyush Yadav <pratyush at kernel.org>
Miquel, since you took the original patch through the NAND tree, can you
please take this one too?
[...]
--
Regards,
Pratyush Yadav
More information about the linux-mtd
mailing list