From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.bootlin.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ffu7q-0006Em-3K for linux-mtd@lists.infradead.org; Wed, 18 Jul 2018 21:36:47 +0000 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: quoted-printable List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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. >=20 > 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=C3=A8l