]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: nand: Declare tBERS, tR and tPROG as u64 to avoid integer overflow
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 31 Jul 2017 08:31:27 +0000 (10:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Aug 2017 20:46:50 +0000 (13:46 -0700)
commita0e1953e0310ad79c9aa6ff019b5425d342566aa
treedbe6cf3d0bf92bbe9d24369a5fc18c85bc11e38f
parent867c07788e9764cee324bbe1193ba93febe08e3c
mtd: nand: Declare tBERS, tR and tPROG as u64 to avoid integer overflow

commit 6d29231000bbe0fb9e4893a9c68151ffdd3b5469 upstream.

All timings in nand_sdr_timings are expressed in picoseconds but some
of them may not fit in an u32.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Fixes: 204e7ecd47e2 ("mtd: nand: Add a few more timings to nand_sdr_timings")
Reported-by: Alexander Dahl <ada@thorsis.com>
Reviewed-by: Alexander Dahl <ada@thorsis.com>
Tested-by: Alexander Dahl <ada@thorsis.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/nand_timings.c
include/linux/mtd/nand.h