mtd: nand: fix integer widening problems
authorBrian Norris <computersforpeace@gmail.com>
Tue, 22 Jul 2014 02:08:03 +0000 (19:08 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 19 Aug 2014 18:53:09 +0000 (11:53 -0700)
commit537ab1bd47d6518e8a40207a80dd0c2c4bc43aed
tree636bff54331b59d6e784ea5ce68fd548f3eb3904
parent7a6f43958a53020f85818ff5c895623e88781fd6
mtd: nand: fix integer widening problems

chip->pagebuf is a 32-bit type (int), so the shift will only be applied
as 32-bit. Fix this for 64-bit safety.

Caught by Coverity.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/nand_base.c