linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mtd: rawnand: free the nand_device object
@ 2020-01-23  8:22 Christophe Kerello
  2020-03-10 18:33 ` Miquel Raynal
  0 siblings, 1 reply; 2+ messages in thread
From: Christophe Kerello @ 2020-01-23  8:22 UTC (permalink / raw)
  To: miquel.raynal, richard, vigneshr
  Cc: linux-mtd, linux-kernel, linux-stm32, Christophe Kerello

This patch releases the resources allocated in nanddev_init function.

Fixes: a7ab085d7c16 ("mtd: rawnand: Initialize the nand_device object")
Signed-off-by: Christophe Kerello <christophe.kerello@st.com>
---
 drivers/mtd/nand/raw/nand_base.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c
index f64e3b6..47c6396 100644
--- a/drivers/mtd/nand/raw/nand_base.c
+++ b/drivers/mtd/nand/raw/nand_base.c
@@ -5907,6 +5907,8 @@ void nand_cleanup(struct nand_chip *chip)
 	    chip->ecc.algo == NAND_ECC_BCH)
 		nand_bch_free((struct nand_bch_control *)chip->ecc.priv);
 
+	nanddev_cleanup(&chip->base);
+
 	/* Free bad block table memory */
 	kfree(chip->bbt);
 	kfree(chip->data_buf);
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: mtd: rawnand: free the nand_device object
  2020-01-23  8:22 mtd: rawnand: free the nand_device object Christophe Kerello
@ 2020-03-10 18:33 ` Miquel Raynal
  0 siblings, 0 replies; 2+ messages in thread
From: Miquel Raynal @ 2020-03-10 18:33 UTC (permalink / raw)
  To: Christophe Kerello, miquel.raynal, richard, vigneshr
  Cc: linux-mtd, linux-kernel, linux-stm32

On Thu, 2020-01-23 at 08:22:48 UTC, Christophe Kerello wrote:
> This patch releases the resources allocated in nanddev_init function.
> 
> Fixes: a7ab085d7c16 ("mtd: rawnand: Initialize the nand_device object")
> Signed-off-by: Christophe Kerello <christophe.kerello@st.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-10 18:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-23  8:22 mtd: rawnand: free the nand_device object Christophe Kerello
2020-03-10 18:33 ` Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).