On Tue, 2020-05-19 at 13:00:09 UTC, Miquel Raynal wrote: > nand_release() is supposed be called after MTD device registration. > Here, only nand_scan() happened, so use nand_cleanup() instead. > > While at it, be consistent and move the function call in the error > path thanks to a goto statement. > > Fixes: 668592492409 ("mtd: nand: Add OX820 NAND Support") > Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx> > Cc: stable@xxxxxxxxxxxxxxx Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next. Miquel ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/