[PATCH v3 4/4] mtd: rawnand: mtk: Fix wrongly assigned OOB buffer pointer issue
miquel.raynal at bootlin.com
Mon Jun 3 01:04:29 PDT 2019
On Tue, 2019-05-07 at 10:25:41 UTC, Xiaolei Li wrote:
> One main goal of the function mtk_nfc_update_ecc_stats is to check
> whether sectors are all empty. If they are empty, set these sectors's
> data buffer and OOB buffer as 0xff.
> But now, the sector OOB buffer pointer is wrongly assigned. We always
> do memset from sector 0.
> To fix this issue, pass start sector number to make OOB buffer pointer
> be properly assigned.
> Fixes: 1d6b1e464950 ("mtd: mediatek: driver for MTK Smart Device")
> Signed-off-by: Xiaolei Li <xiaolei.li at mediatek.com>
> Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
More information about the linux-mtd