aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpicoder.c
diff options
context:
space:
mode:
authorBoris BREZILLON <[email protected]>2015-10-20 20:16:00 +0000
committerBrian Norris <[email protected]>2015-11-02 20:54:25 +0000
commit74eb9ff54e21dbeefa04ff30e6aaf780b91dd261 (patch)
tree07d85514b222fe71100d67ab7bb03aea861f1748 /lib/mpi/mpicoder.c
parentmtd: blkdevs: fix potential deadlock + lockdep warnings (diff)
downloadkernel-74eb9ff54e21dbeefa04ff30e6aaf780b91dd261.tar.gz
kernel-74eb9ff54e21dbeefa04ff30e6aaf780b91dd261.zip
mtd: nand: sunxi: fix sunxi_nfc_hw_ecc_read/write_chunk()
The sunxi_nfc_hw_ecc_read/write_chunk() functions try to avoid changing the column address if unnecessary, but the logic to determine whether it's necessary or not is currently wrong: it adds the ecc->bytes value to the current offset where it should actually add ecc->size. Fixes: 913821bdd211 ("mtd: nand: sunxi: introduce sunxi_nfc_hw_ecc_read/write_chunk()") Signed-off-by: Boris Brezillon <[email protected]> Signed-off-by: Brian Norris <[email protected]>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions