kernel: mtk_bmt: fix remapping after read/write failure
authorFelix Fietkau <nbd@nbd.name>
Sun, 9 Jan 2022 16:26:46 +0000 (17:26 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 13 Jan 2022 17:33:06 +0000 (18:33 +0100)
commitfde242159785f5831a9da80a1f88babb6a89cb05
treeeef2e044a7a70ac840d963315262173a36f6b81b
parentbcf91fe8849bf4467637fd5570806837ba93dbd4
kernel: mtk_bmt: fix remapping after read/write failure

Copy from the previous block in order to preserve existing data

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/generic/files/drivers/mtd/nand/mtk_bmt.c