Re: [PATCH 4/9] mtd: nand: qcom: fix null pointer access for erased buffer detection

2018-04-22 Thread Abhishek Sahu
On 2018-04-22 21:55, Miquel Raynal wrote: Hi Abhishek, On Thu, 12 Apr 2018 12:24:16 +0530, Abhishek Sahu wrote: On 2018-04-10 14:42, Miquel Raynal wrote: > Hi Abhishek, > > On Wed, 4 Apr 2018 18:12:20 +0530, Abhishek Sahu > wrote: > >> parse_read_errors can be called with only oob buf also

Re: [PATCH 4/9] mtd: nand: qcom: fix null pointer access for erased buffer detection

2018-04-22 Thread Miquel Raynal
Hi Abhishek, On Thu, 12 Apr 2018 12:24:16 +0530, Abhishek Sahu wrote: > On 2018-04-10 14:42, Miquel Raynal wrote: > > Hi Abhishek, > > > On Wed, 4 Apr 2018 18:12:20 +0530, Abhishek Sahu > > wrote: > > >> parse_read_errors can be called with only oob buf also in which > >> case data_buf

Re: [PATCH 4/9] mtd: nand: qcom: fix null pointer access for erased buffer detection

2018-04-11 Thread Abhishek Sahu
On 2018-04-10 14:42, Miquel Raynal wrote: Hi Abhishek, On Wed, 4 Apr 2018 18:12:20 +0530, Abhishek Sahu wrote: parse_read_errors can be called with only oob buf also in which case data_buf will be NULL. If data_buf is NULL, then don’t treat this page as completely erased in case of ECC unco

Re: [PATCH 4/9] mtd: nand: qcom: fix null pointer access for erased buffer detection

2018-04-10 Thread Miquel Raynal
Hi Abhishek, On Wed, 4 Apr 2018 18:12:20 +0530, Abhishek Sahu wrote: > parse_read_errors can be called with only oob buf also in which > case data_buf will be NULL. If data_buf is NULL, then don’t > treat this page as completely erased in case of ECC uncorrectable > error. > > Signed-off-by: