diff options
author | RogerCC Lin <rogercc.lin@mediatek.com> | 2016-09-19 04:53:25 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-09-19 11:56:33 +0200 |
commit | 7a353289925f01cb188ebc6fc4f4a33456b7de44 (patch) | |
tree | 9299f504fb4797d8c51e2778c0bb10d6e672f516 /lib/crc32.c | |
parent | Linux 4.8-rc7 (diff) | |
download | linux-7a353289925f01cb188ebc6fc4f4a33456b7de44.tar.xz linux-7a353289925f01cb188ebc6fc4f4a33456b7de44.zip |
mtd: nand: fix generating over-boundary ECC data when writing
When mtk_ecc_encode() is writing the ECC parity data to the OOB
region,because each register is 4 bytes in length,but the len's unit is
in bytes,the operation in the for loop will cross the ECC's boundary.
Signed-off-by: RogerCC Lin <rogercc.lin@mediatek.com>
Fixes: 1d6b1e464950 ("mtd: mediatek: driver for MTK Smart Device")
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'lib/crc32.c')
0 files changed, 0 insertions, 0 deletions