* [PATCH] mtd: gpmi: fix a dereferencing freed memory error
@ 2013-01-23 8:20 Huang Shijie
2013-02-04 8:08 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Huang Shijie @ 2013-01-23 8:20 UTC (permalink / raw)
To: dwmw2; +Cc: Huang Shijie, linux-mtd, linux-arm-kernel, dedekind1
The patch "490e280 mtd: gpmi-nand: Convert to module_platform_driver()"
introduced a "dereferencing freed memory" error.
This patch fixes it.
Signed-off-by: Huang Shijie <b32955@freescale.com>
---
drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
index 631564d..38c8b8b 100644
--- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
+++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
@@ -1657,8 +1657,8 @@ exit_nfc_init:
release_resources(this);
exit_acquire_resources:
platform_set_drvdata(pdev, NULL);
- kfree(this);
dev_err(this->dev, "driver registration failed: %d\n", ret);
+ kfree(this);
return ret;
}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mtd: gpmi: fix a dereferencing freed memory error
2013-01-23 8:20 [PATCH] mtd: gpmi: fix a dereferencing freed memory error Huang Shijie
@ 2013-02-04 8:08 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2013-02-04 8:08 UTC (permalink / raw)
To: Huang Shijie; +Cc: linux-mtd, dwmw2, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 342 bytes --]
On Wed, 2013-01-23 at 16:20 +0800, Huang Shijie wrote:
> The patch "490e280 mtd: gpmi-nand: Convert to module_platform_driver()"
> introduced a "dereferencing freed memory" error.
>
> This patch fixes it.
>
> Signed-off-by: Huang Shijie <b32955@freescale.com>
Pushed to l2-mtd.git, thanks!
--
Best Regards,
Artem Bityutskiy
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-04 8:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-23 8:20 [PATCH] mtd: gpmi: fix a dereferencing freed memory error Huang Shijie
2013-02-04 8:08 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox