kernel: mtk_bmt: on error, do not attempt to remap out-of-range blocks
authorFelix Fietkau <nbd@nbd.name>
Wed, 9 Mar 2022 15:14:12 +0000 (16:14 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 10 Oct 2022 10:58:25 +0000 (12:58 +0200)
commit737ee934d2cb0878638037bac3e957fc2547c4f8
tree62d486a85b29a9136c86b0b07f0aa8e310c28b27
parenta78fd5bbb62bdb20d075b7ab42d3f09ca465d550
kernel: mtk_bmt: on error, do not attempt to remap out-of-range blocks

Pass errors to caller instead

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit be1f2b4d9d01594c2fd20f37b8e63e7cb7a81572)
target/linux/generic/files/drivers/mtd/nand/mtk_bmt.c
target/linux/generic/files/drivers/mtd/nand/mtk_bmt_bbt.c