mtd: nand: gpmi: Check for scan_bbt() error
Subsystems (2)
PATCH 1/1 mtd: nand: gpmi: Check for scan_bbt() error
From: Fabio Estevam <[email protected]>
In case of scan_bbt() failure, we should better propagate it.
Signed-off-by Fabio Estevam <[email protected]>
--- drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/mtd/nand/gpmi-nand/gpmi-nand.c +3 -1
@@ -1950,7 +1950,9 @@ static int gpmi_nand_init(struct gpmi_nand_data *this) ret =nand_boot_init (this);if (ret) goto err_out; - chip->scan_bbt (mtd); + ret = chip->scan_bbt (mtd); +if (ret) + goto err_out; ppdata.of_node = this->pdev->dev.of_node; ret =mtd_device_parse_register (mtd,NULL , &ppdata,NULL ,0 );
Signature · 1 line
1.9.1
Quoted 5 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
In case of
scan_bbt()failure, we should better propagate it.Signed-off-by Fabio Estevam <[email protected]>
thanks
Acked-by Huang Shijie <[email protected]>
Brian Norris
AppliedQuoted 5 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
In case of
scan_bbt()failure, we should better propagate it.Signed-off-by Fabio Estevam <[email protected]>
Pushed to l2-mtd.git. Thanks!
Brian