linux-brain/drivers/mtd/nand/raw/ingenic
Miquel Raynal ae7cf595e1 mtd: rawnand: ingenic: Fix the probe error path
commit de17cade0e034e9b721a6db9b488014effac1e5a upstream.

nand_release() is supposed be called after MTD device registration.
Here, only nand_scan() happened, so use nand_cleanup() instead.

There is no real Fixes tag applying here as the use of nand_release()
in this driver predates the introduction of nand_cleanup() in
commit d44154f969 ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
which makes this change possible. Hence, pointing it as the commit to
fix for backporting purposes, even if this commit is not introducing
any bug makes sense.

Fixes: d44154f969 ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: stable@vger.kernel.org
Cc: Paul Cercueil <paul@crapouillou.net>
Cc: Harvey Hunt <harveyhuntnexus@gmail.com>
Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-22-miquel.raynal@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-22 09:31:25 +02:00
..
Kconfig mtd: rawnand: Drop obsolete JZ4740 NAND driver 2019-07-30 10:41:54 -07:00
Makefile mtd: rawnand: Drop obsolete JZ4740 NAND driver 2019-07-30 10:41:54 -07:00
ingenic_ecc.c mtd: rawnand: ingenic: Fix ingenic_ecc dependency 2019-07-01 14:50:38 +02:00
ingenic_ecc.h mtd: rawnand: ingenic: Separate top-level and SoC specific code 2019-04-08 10:21:04 +02:00
ingenic_nand_drv.c mtd: rawnand: ingenic: Fix the probe error path 2020-06-22 09:31:25 +02:00
jz4725b_bch.c mtd: rawnand: ingenic: Add support for the JZ4725B 2019-04-08 10:21:06 +02:00
jz4740_ecc.c mtd: rawnand: ingenic: Add support for the JZ4740 2019-04-08 10:21:05 +02:00
jz4780_bch.c mtd: rawnand: ingenic: Separate top-level and SoC specific code 2019-04-08 10:21:04 +02:00