Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1640326imm; Tue, 22 May 2018 07:11:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZodOraD5NV26qeKFh9AAXxbTX765qm2P/2nKMwF5bdZUodERQPzzc6/BgCJvuQ02B5qqu4C X-Received: by 2002:a63:3e8d:: with SMTP id l135-v6mr16067323pga.355.1526998307769; Tue, 22 May 2018 07:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526998307; cv=none; d=google.com; s=arc-20160816; b=aPbMmMdaLnKwKzZ9B9dQBBTEqho9r5xRodPuZclxSQ5cbqGj80V2RLl+TQ+l9ZeiNR 97EA4orvT54LeMHjBpUfGdnoOETXyeDw5uB0xzhcHi1pnmxEupIT84E7eOXEINUbO8n8 GLjE6Gl7u+lpFqqNLSLL8v2PBRfMVpBzHsWnhaHiE/4bhSMhl7kftruN84c1bzTEB9F+ i8ZzlqeHTlPcfBRyf7eJMQ8+vfgokxcj4qfWCvXoZvyKegywkt8Qrqm5enumC+ByONDE LmGxKZ1oRBRNOOZ6D+8cMxiB7KD4Gbokf0BPyhruW3kFwj91LsLqzanQT7d1xgXT2G6+ K1dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=NWdXU9N83K/N8gRD7fN/aC5uIx/r2OF7CMnjlt4OZSk=; b=MDLRaF0bs9QnSmVPavvKY7fTLq7kswdJbO1Nhs9/oX/2olrM7dkads+6I1BUdtrx13 Gz+rYyYu3fq4RUJj/T/v63lZdSFt+4uRhyA8VYMgOJtRbppMalA+MYuwGdE8zXo8Qk6U 93IhratTbgTLiktgcwzekMWtTIsu/O01kh4+AgYiqq880CSfwrZHwyD7U9fDYFDf/MXW ayw+Br5UyXTguco/dtfR9Ur7QjEwr6VuXPg5NsMTasMsGKbtzfeT8ugEj358+6p6NTAf Ia7o+4w8cJIhHEdKAUePqa88t5AbuwVoY9hbMsNCCIrx4mPzLCPx224H9jgnYZbViwG/ Toxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=KOwuDDgB; dkim=pass header.i=@codeaurora.org header.s=default header.b=JDPpZeJE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4-v6si10144743pgc.551.2018.05.22.07.11.33; Tue, 22 May 2018 07:11:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=KOwuDDgB; dkim=pass header.i=@codeaurora.org header.s=default header.b=JDPpZeJE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751586AbeEVOLP (ORCPT + 99 others); Tue, 22 May 2018 10:11:15 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45360 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751342AbeEVOLK (ORCPT ); Tue, 22 May 2018 10:11:10 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 62A0E607A2; Tue, 22 May 2018 14:11:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526998270; bh=dBkmEF88ZyEXePjCJxZzFzNJ3VYtCB20RBliRwT4FVM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KOwuDDgB2MNnU5Va0v1jaDhqKrHz6/TBLpKs8Qn1RJhLT6Us3/UCzLT/k5b5+hWYC TnubQ4KwGqcXNr5mcM7H1ExxQoL0bQwYM5jo2ByvVpZqA1tEB4A1Sq6isfxYNPqU7+ L5NRB1KMTgoQZ2rgfMb9kQ98N12KDaOCYwiUsckU= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 85C5360314; Tue, 22 May 2018 14:11:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526998269; bh=dBkmEF88ZyEXePjCJxZzFzNJ3VYtCB20RBliRwT4FVM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JDPpZeJEzNWKgMl+SkxYGkFQh5d2vGzpTWSlQftZdpGgx+bACBnB4l//GZkWDZVEL qjE8228rdR84cZfyqqkDbpxGJaAKGLLOJ4ZunVjCfT2ZlUE+mmyHsEs2HTT57J7Dn1 svKeVx1gI8pjJQXRP+vstT2UpEb37CVdTB1qWUkM= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Tue, 22 May 2018 19:41:09 +0530 From: Abhishek Sahu To: Miquel Raynal Cc: Boris Brezillon , David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Andy Gross , Archit Taneja Subject: Re: [PATCH v2 07/14] mtd: rawnand: qcom: fix null pointer access for erased page detection In-Reply-To: <20180522091647.74884137@xps13> References: <1525350041-22995-1-git-send-email-absahu@codeaurora.org> <1525350041-22995-8-git-send-email-absahu@codeaurora.org> <20180522091647.74884137@xps13> Message-ID: <0df05f333a04a09af1ae1ee9cc2fa198@codeaurora.org> X-Sender: absahu@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-05-22 12:46, Miquel Raynal wrote: > Hi Abhishek, > > On Thu, 3 May 2018 17:50:34 +0530, Abhishek Sahu > wrote: > >> parse_read_errors can be called with only oob_buf 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 for RS ECC. For BCH ECC, the controller itself tells >> regarding erased page in status register. >> >> Signed-off-by: Abhishek Sahu >> --- >> * Changes from v1: >> >> 1. Added more detail in commit message >> 2. Added comment before each if/else > > Again, thanks for that. > >> >> drivers/mtd/nand/raw/qcom_nandc.c | 18 +++++++++++++++--- >> 1 file changed, 15 insertions(+), 3 deletions(-) > > Acked-by: Miquel Raynal Thanks Miquel for your review. Regards, Abhishek