From: Brian Norris Date: Sat, 28 Feb 2015 10:13:13 +0000 (-0800) Subject: mtd: nand_bbt: fix theoretical integer overflow in BBT write X-Git-Tag: omap-for-v4.2/fixes-rc1^2~143^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5cd2ae1e4ad23bc6527b4a667d3f27534730cc5;p=pandora-kernel.git 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 --- Reading git-diff-tree failed