Re: [PATCH] mtd: mtdram: check offs and len in mtdram->point madram->unpoint, mtdram->write and mtdram->read

2017-03-16 Thread Boris Brezillon
Hi Chen, Can you use something shorter for your commit title. Something like "mtd: mtdram: check offs and len where appropriate" On Fri, 3 Mar 2017 15:31:00 +0800 chenwy wrote: > We should prevent user to erasing mtd device with ^

Re: [PATCH] mtd: mtdram: check offs and len in mtdram->point madram->unpoint, mtdram->write and mtdram->read

2017-03-16 Thread Boris Brezillon
Hi Chen, Can you use something shorter for your commit title. Something like "mtd: mtdram: check offs and len where appropriate" On Fri, 3 Mar 2017 15:31:00 +0800 chenwy wrote: > We should prevent user to erasing mtd device with ^ from > an unaligned

[PATCH] mtd: mtdram: check offs and len in mtdram->point madram->unpoint,mtdram->write and mtdram->read

2017-03-02 Thread chenwy
We should prevent user to erasing mtd device with an unaligned offset or length. Signed-off-by: Chen Wenyong --- drivers/mtd/devices/mtdram.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mtd/devices/mtdram.c

[PATCH] mtd: mtdram: check offs and len in mtdram->point madram->unpoint,mtdram->write and mtdram->read

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