mtd: mtdram: check offs and len in mtdram->erase
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>
Tue, 21 Jul 2015 08:30:20 +0000 (16:30 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 29 Sep 2015 22:43:15 +0000 (15:43 -0700)
commit7827e3acad2df1c6537e5fe7211d216dabc60399
tree7b38b2b3441409c8b882c40462a54608834fabeb
parent8a799590005180b1010912be096c1302e2bd06da
mtd: mtdram: check offs and len in mtdram->erase

We should prevent user to erasing mtd device with
an unaligned offset or length.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/mtdram.c