mtd: tests: fix more potential integer overflows
authorBrian Norris <computersforpeace@gmail.com>
Sat, 28 Feb 2015 10:02:26 +0000 (02:02 -0800)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 11 Mar 2015 22:21:47 +0000 (15:21 -0700)
commitb9da8bae416efda5ad61c7c92edbb30de15ff7ee
tree85278d8d43ad2db78971ed9de0cc08f5097c7014
parent7f2a7ce17dcd381e366a65b6643239338a987715
mtd: tests: fix more potential integer overflows

Caught by Coverity (CID #200625 and others)

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
drivers/mtd/tests/oobtest.c
drivers/mtd/tests/speedtest.c
drivers/mtd/tests/stresstest.c
drivers/mtd/tests/subpagetest.c
drivers/mtd/tests/torturetest.c