summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/mpc5121_nfc.c
diff options
context:
space:
mode:
authorBrian Norris2015-02-28 11:13:13 +0100
committerBrian Norris2015-05-07 05:02:37 +0200
commitf5cd2ae1e4ad23bc6527b4a667d3f27534730cc5 (patch)
treedb6afc8de0be0581cffc2d7a0999f13614514f4a /drivers/mtd/nand/mpc5121_nfc.c
parentmtd: nand_bbt: unify/fix error handling in nand_scan_bbt() (diff)
downloadkernel-qcow2-linux-f5cd2ae1e4ad23bc6527b4a667d3f27534730cc5.tar.gz
kernel-qcow2-linux-f5cd2ae1e4ad23bc6527b4a667d3f27534730cc5.tar.xz
kernel-qcow2-linux-f5cd2ae1e4ad23bc6527b4a667d3f27534730cc5.zip
mtd: nand_bbt: fix theoretical integer overflow in BBT write
This statement was written with a cast-to-loff_t to be sure to have a full 64-bit mask. However, we don't account for the fact that '1 << this->bbt_erase_shift' might already overflow. This will not be a problem in practice, since eraseblocks should never be anywhere near 4GiB. But we can do this for completeness, and quiet Coverity in the meantime. CID #1226806. Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/mpc5121_nfc.c')
0 files changed, 0 insertions, 0 deletions