]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: nand: Fix nanddev_neraseblocks()
authorBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 28 Oct 2018 11:29:55 +0000 (12:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:22:05 +0000 (09:22 +0100)
commitca589cb08cd6003f5dd5682dc0bfa3c90d0e41f0
tree6e496bfdc5689ecf1748c13e737804890d238a7d
parent98f1ce39c92c8c04d1bf53bff9fa9eb22b442f8c
mtd: nand: Fix nanddev_neraseblocks()

commit d098093ba06eb032057d1aca1c2e45889e099d00 upstream.

nanddev_neraseblocks() currently returns the number pages per LUN
instead of the total number of eraseblocks.

Fixes: 9c3736a3de21 ("mtd: nand: Add core infrastructure to deal with NAND devices")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/mtd/nand.h