From: Brian Norris Date: Tue, 22 Jul 2014 02:07:12 +0000 (-0700) Subject: mtd: tests: fix integer overflow issues X-Git-Tag: fixes-against-v3.18-rc2~54^2~33^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1001ff7a4f64f3f4264e69d3ed70ff428f627e01;p=pandora-kernel.git mtd: tests: fix integer overflow issues These multiplications are done with 32-bit arithmetic, then converted to 64-bit. We should widen the integers first to prevent overflow. This could be a problem for large (>4GB) MTD's. Detected by Coverity. Signed-off-by: Brian Norris Cc: Akinobu Mita --- Reading git-diff-tree failed