Re: [PATCH v2] mtdram: check offs and len where appropriate

2017-03-29 Thread Boris Brezillon
On Fri, 17 Mar 2017 10:29:39 +0800 chenwy wrote: > We should prevent user to operating mtd device with > an illegal offset or length. I realize that all the tests you do here are already done in mtdcore.c. If one is missing, please patch mtdcore.c instead. Thanks, Boris > > Signed-off-by: Ch

[PATCH v2] mtdram: check offs and len where appropriate

2017-03-16 Thread chenwy
We should prevent user to operating mtd device with an illegal offset or length. Signed-off-by: Chen Wenyong --- drivers/mtd/devices/mtdram.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/mtd/devices/mtdram.c b/drivers/mtd/devices/mtdram.c index cbd8547..83e1603 1