Re: [PATCH] mtd: mtdram: check offs and len in mtdram->erase

2015-10-02 Thread Sudip Mukherjee
On Sat, Oct 03, 2015 at 11:31:04AM +0800, Dongsheng Yang wrote: > On 10/03/2015 01:38 AM, Brian Norris wrote: > >On Fri, Oct 02, 2015 at 03:31:33PM +0530, Sudip Mukherjee wrote: > >>On Fri, Oct 02, 2015 at 05:39:02PM +0800, Dongsheng Yang wrote: > >>>On 10/01/2015 12:41 AM, Sudip Mukherjee wrote: >

Re: [PATCH] mtd: mtdram: check offs and len in mtdram->erase

2015-10-02 Thread Dongsheng Yang
On 10/03/2015 01:38 AM, Brian Norris wrote: On Fri, Oct 02, 2015 at 03:31:33PM +0530, Sudip Mukherjee wrote: On Fri, Oct 02, 2015 at 05:39:02PM +0800, Dongsheng Yang wrote: On 10/01/2015 12:41 AM, Sudip Mukherjee wrote: We should prevent user to erasing mtd device with an unaligned offset or l

Re: [PATCH] mtd: mtdram: check offs and len in mtdram->erase

2015-10-02 Thread Brian Norris
On Fri, Oct 02, 2015 at 03:31:33PM +0530, Sudip Mukherjee wrote: > On Fri, Oct 02, 2015 at 05:39:02PM +0800, Dongsheng Yang wrote: > > On 10/01/2015 12:41 AM, Sudip Mukherjee wrote: > > >We should prevent user to erasing mtd device with an unaligned offset > > >or length. > > > > > >Signed-off-by:

Re: [PATCH] mtd: mtdram: check offs and len in mtdram->erase

2015-10-02 Thread Sudip Mukherjee
On Fri, Oct 02, 2015 at 05:39:02PM +0800, Dongsheng Yang wrote: > On 10/01/2015 12:41 AM, Sudip Mukherjee wrote: > >We should prevent user to erasing mtd device with an unaligned offset > >or length. > > > >Signed-off-by: Sudip Mukherjee > >--- > > > >I am not sure if I should add the Signed-off-b

Re: [PATCH] mtd: mtdram: check offs and len in mtdram->erase

2015-10-02 Thread Dongsheng Yang
On 10/01/2015 12:41 AM, Sudip Mukherjee wrote: We should prevent user to erasing mtd device with an unaligned offset or length. Signed-off-by: Sudip Mukherjee --- I am not sure if I should add the Signed-off-by of Dongsheng Yang . He is the original author and he should get the credit for tha

[PATCH] mtd: mtdram: check offs and len in mtdram->erase

2015-09-30 Thread Sudip Mukherjee
We should prevent user to erasing mtd device with an unaligned offset or length. Signed-off-by: Sudip Mukherjee --- I am not sure if I should add the Signed-off-by of Dongsheng Yang . He is the original author and he should get the credit for that. drivers/mtd/devices/mtdram.c | 27 ++