]> git.baikalelectronics.ru Git - kernel.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)
commit9ccba7f47b65a04a7bc3d0f0059c8c062d6fc424
treeda4fb2f4e05d155430e444678acd270998b713f7
parentd88c4aff6db0e559a54ab6b5b48033071717fbb9
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: cb6fdeb6a989 ("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