[PATCH v2 0/3] mtdram: check offs and len in mtdram->erase
Dongsheng Yang
yangds.fnst at cn.fujitsu.com
Tue Sep 29 18:01:18 PDT 2015
Hi Brian,
This is V2 for mtdram: check offs and len in mtdram->erase.
I replace '%' with mtd_mod_by_eb(). In addition, I update the new
erasetest at the same time.
Changelog:
V1:
- replace '%' with mtd_mod_by_eb();
Dongsheng Yang (3):
mtd: mtdram: check offs and len in mtdram->erase
mtd: test: refactor mtdtest_erase_eraseblock to introduce a new
mtdtest_erase function
mtd: tests: introduce a erase test
drivers/mtd/devices/mtdram.c | 21 ++++++
drivers/mtd/tests/Makefile | 2 +
drivers/mtd/tests/erasetest.c | 158 ++++++++++++++++++++++++++++++++++++++++++
drivers/mtd/tests/mtd_test.c | 44 ++++++++----
drivers/mtd/tests/mtd_test.h | 1 +
5 files changed, 214 insertions(+), 12 deletions(-)
create mode 100644 drivers/mtd/tests/erasetest.c
--
1.8.4.2
More information about the linux-mtd
mailing list