Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1232652imm; Tue, 22 May 2018 00:17:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoJd3ghMCDrHbE++cV+6PLqurdv9aCjEUroesjqq4bnNn7PUdEQ/FTYr4JpbDqh/pB1aeHR X-Received: by 2002:a17:902:205:: with SMTP id 5-v6mr19703978plc.301.1526973446440; Tue, 22 May 2018 00:17:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526973446; cv=none; d=google.com; s=arc-20160816; b=T1culm87uGnbZrCJeiTYi8XjHZyOvHs/ENjvF5gIQcbzQAOZfdJDU4BilxieESkhFb pPNLS/yBNM3H3tthDVihfpixQXjpn2YNHl2YH5J7qWyp8IL5OPSSt3JV9d8ZMV6lYB58 r3S7BwMP+ekAks42HrvIdoa/a41YepFA6bIg3D1os9q287UG9XtjEe1q+ylrBLWCU7lO EvYxd+ZoQTTDb2xJcoZ72VKrRh0+5TjALGxWf4YSY4lWeIjdWLms+DrXLfCf0ubKIC2V yFlGmH+Zb4hfD5luC9u1ol6XcAK58AAjwjK3qtgZV/RR5BvJNB7AghLYaYwGi5fLRc0O q1lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=PLR9Ozjc+6sDzQ7t/0guwU47ChmXqwqwXjNLr148qvo=; b=DquZd9+s4JV9cnDLpIO3ODCfKkkxvR3xnQO8xHyliJUufb8cwb54cUW3PYidVWj+Sb 2vyvYIKmK9gMMzMHsNBsHoO39FFgDTjwiH9Mn155ur72gSFqXWLpXNdhQClzpX0AQj+M CGcEx+r+YG/+7BaAKwWhr4Z0Mihx/AQY0cHC5Q8YnUtljNZ4DDmHE/uuzYRggRWpq6YV hB7h/w1PgR1LbtowP6/Mn5lqbUCb7/eHX+nbhS7qOQ0W4oiIx50AHzHfcDEd6olHQEg4 qCFaRoPS87KN1SPz/S/7a/blNovHm53hM1sawoHEJZprxEo1IqLcHJCglW7THGA/TxM9 Cr0g== ARC-Authentication-Results: i=1; mx.google.com; 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 q12-v6si11916939pgn.377.2018.05.22.00.17.11; Tue, 22 May 2018 00:17:26 -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; 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 S1751279AbeEVHQx convert rfc822-to-8bit (ORCPT + 99 others); Tue, 22 May 2018 03:16:53 -0400 Received: from mail.bootlin.com ([62.4.15.54]:44573 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751069AbeEVHQu (ORCPT ); Tue, 22 May 2018 03:16:50 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 3C9622072C; Tue, 22 May 2018 09:16:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from xps13 (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id D2D452036F; Tue, 22 May 2018 09:16:47 +0200 (CEST) Date: Tue, 22 May 2018 09:16:47 +0200 From: Miquel Raynal To: Abhishek Sahu 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 Message-ID: <20180522091647.74884137@xps13> In-Reply-To: <1525350041-22995-8-git-send-email-absahu@codeaurora.org> References: <1525350041-22995-1-git-send-email-absahu@codeaurora.org> <1525350041-22995-8-git-send-email-absahu@codeaurora.org> Organization: Bootlin X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- Miquel Raynal, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com