kernel: mtk_bmt: on error, do not attempt to remap out-of-range blocks
[openwrt/openwrt.git] / target / linux / generic / files / drivers / mtd / nand / mtk_bmt_bbt.c
index 3a58f522776d09b4e5ade4cbaca551db5c98657d..519e1ed70c7b8a8b3c4827f3da20d20228edde38 100644 (file)
@@ -93,7 +93,7 @@ static bool remap_block_bbt(u16 block, u16 mapped_blk, int copy_len)
        if (copy_len > 0)
                bbt_nand_copy(new_blk, mapped_blk, copy_len);
 
-       return false;
+       return true;
 }
 
 static void