Hi, On Fri, Oct 09, 2020 at 04:02:29PM +0200, gregkh@xxxxxxxxxxxxxxxxxxx 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;a=summary > > 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@xxxxxxxxxxxxxxx> 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@xxxxxxxxxxx> > Date: Tue, 19 May 2020 15:00:26 +0200 > Subject: mtd: rawnand: sunxi: Fix the probe error path > > From: Miquel Raynal <miquel.raynal@xxxxxxxxxxx> > > 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@xxxxxxxxxxx> > Cc: stable@xxxxxxxxxxxxxxx > Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-54-miquel.raynal@xxxxxxxxxxx > [iwamatsu: adjust filename] > Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@xxxxxxxxxxxxx> > Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> > --- > 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); > + nand_cleanup(mtd); > return ret; > } > > > > Patches currently in stable-queue which might be from miquel.raynal@xxxxxxxxxxx are > > queue-4.4/mtd-rawnand-sunxi-fix-the-probe-error-path.patch >