mtd: mtdram: check offs and len in mtdram->erase
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>
Wed, 30 Sep 2015 01:01:19 +0000 (09:01 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 20 Oct 2015 01:08:33 +0000 (18:08 -0700)
commitab84fce518175aa09ec6e1bb50c2b41dad3e610a
treec21e33b3f6907e7c3f46bef21d7119e394db0636
parentd3e94f3f2c0f669dfa0d0d51645d5d7d13a9c074
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