From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.bootlin.com ([62.4.15.54]:41442 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730003AbeGRWQ3 (ORCPT ); Wed, 18 Jul 2018 18:16:29 -0400 Date: Wed, 18 Jul 2018 23:36:33 +0200 From: Miquel Raynal To: Boris Brezillon Cc: Richard Weinberger , linux-mtd@lists.infradead.org, David Woodhouse , Brian Norris , Marek Vasut , stable@vger.kernel.org Subject: Re: [PATCH] mtd: rawnand: fsmc: Stop using chip->read_buf() Message-ID: <20180718233633.3416f720@xps13> In-Reply-To: <20180718082814.17203-1-boris.brezillon@bootlin.com> References: <20180718082814.17203-1-boris.brezillon@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: stable-owner@vger.kernel.org List-ID: Hi Boris, Boris Brezillon wrote on Wed, 18 Jul 2018 10:28:14 +0200: > chip->read_buf is left unassigned since commit 4da712e70294 ("mtd: nand: > fsmc: use ->exec_op()"), leading to a NULL pointer dereference when it's > called from fsmc_read_page_hwecc(). Fix that by using the appropriate > helper to read data out of the NAND. > > Fixes: 4da712e70294 ("mtd: nand: fsmc: use ->exec_op()") > Cc: > Signed-off-by: Boris Brezillon > ---, Thanks for the fix. As nobody complained I don't think it is urgent to get it merged so I applied it to nand/next. Thanks, Miquèl