Hi,
On Fri, Oct 09, 2020 at 04:02:29PM +0200, gregkh@linuxfoundation.org wrote:
This is a note to let you know that I've just added the patch titled
mtd: rawnand: sunxi: Fix the probe error path
to the 4.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git%3Ba=su...
The filename of the patch is: mtd-rawnand-sunxi-fix-the-probe-error-path.patch and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let stable@vger.kernel.org know about it.
This patch content is not sufficient for 4.4.y. 4.4.y does not provide nand_cleanup(), which results in a build error.
Please drop this from 4.4.y queue.
Best regards, Nobuhiro
From 3d84515ffd8fb657e10fa5b1215e9f095fa7efca Mon Sep 17 00:00:00 2001
From: Miquel Raynal miquel.raynal@bootlin.com Date: Tue, 19 May 2020 15:00:26 +0200 Subject: mtd: rawnand: sunxi: Fix the probe error path
From: Miquel Raynal miquel.raynal@bootlin.com
commit 3d84515ffd8fb657e10fa5b1215e9f095fa7efca upstream.
nand_release() is supposed be called after MTD device registration. Here, only nand_scan() happened, so use nand_cleanup() instead.
Fixes: 1fef62c1423b ("mtd: nand: add sunxi NAND flash controller support") Signed-off-by: Miquel Raynal miquel.raynal@bootlin.com Cc: stable@vger.kernel.org Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-54-miquel.raynal@bootl... [iwamatsu: adjust filename] Signed-off-by: Nobuhiro Iwamatsu nobuhiro1.iwamatsu@toshiba.co.jp Signed-off-by: Greg Kroah-Hartman gregkh@linuxfoundation.org
drivers/mtd/nand/sunxi_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/mtd/nand/sunxi_nand.c +++ b/drivers/mtd/nand/sunxi_nand.c @@ -1376,7 +1376,7 @@ static int sunxi_nand_chip_init(struct d ret = mtd_device_parse_register(mtd, NULL, &ppdata, NULL, 0); if (ret) { dev_err(dev, "failed to register mtd device: %d\n", ret);
nand_release(mtd);
return ret; }nand_cleanup(mtd);
Patches currently in stable-queue which might be from miquel.raynal@bootlin.com are
queue-4.4/mtd-rawnand-sunxi-fix-the-probe-error-path.patch
On Sun, Oct 11, 2020 at 08:28:33AM +0900, Nobuhiro Iwamatsu wrote:
Hi,
On Fri, Oct 09, 2020 at 04:02:29PM +0200, gregkh@linuxfoundation.org wrote:
This is a note to let you know that I've just added the patch titled
mtd: rawnand: sunxi: Fix the probe error path
to the 4.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git%3Ba=su...
The filename of the patch is: mtd-rawnand-sunxi-fix-the-probe-error-path.patch and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let stable@vger.kernel.org know about it.
This patch content is not sufficient for 4.4.y. 4.4.y does not provide nand_cleanup(), which results in a build error.
Please drop this from 4.4.y queue.
Ah, good catch, sorry about that, now dropped.
greg k-h
linux-stable-mirror@lists.linaro.org