]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 2 Aug 2017 08:26:42 +0000 (10:26 +0200)
commit6d29231000bbe0fb9e4893a9c68151ffdd3b5469
treeda4fb2f4e05d155430e444678acd270998b713f7
parenta11bf5ed951f8900d244d09eb03a888b59c7fc82
mtd: nand: Declare tBERS, tR and tPROG as u64 to avoid integer overflow

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>
Cc: <stable@vger.kernel.org>
Reviewed-by: Alexander Dahl <ada@thorsis.com>
Tested-by: Alexander Dahl <ada@thorsis.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/nand_timings.c
include/linux/mtd/nand.h