]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: nand: raw: omap_gpmc: Check return value of gpmc_nand_init
authorVignesh Raghavendra <vigneshr@ti.com>
Wed, 31 Jul 2024 14:58:55 +0000 (20:28 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 27 Aug 2024 20:27:44 +0000 (14:27 -0600)
commit8a5642fa840308875ffff388dd87636f68725883
tree4c5a2d6f643dbcb3e2a8b3755ccd80eafec844e8
parentf85dafa9affb280990bdb9ceaa0200a7f534f881
mtd: nand: raw: omap_gpmc: Check return value of gpmc_nand_init

If the function is called with no NAND device attached, then this
function can return error value, proceeding further ignoring the same
can cause system crash. This is seen when "mtd list" is run with no NAND
addon cards connected.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Acked-by: Roger Quadros <rogerq@kernel.org>
drivers/mtd/nand/raw/omap_gpmc.c