mtd: gpmi: fix a dereferencing freed memory error
Subsystems (2)
PATCH 1/1 mtd: gpmi: fix a dereferencing freed memory error
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 <[email protected]>
--- drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/nand/gpmi-nand/gpmi-nand.c +1 -1
@@ -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; }
Signature · 1 line
1.7.0.4
Artem Bityutskiy
AppliedPATCH 1/1 mtd: gpmi: fix a dereferencing freed memory error
Quoted 6 lines · Huang Shijie
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 <[email protected]>
Pushed to l2-mtd.git, thanks!
Signature · 9 lines
Best Regards, Artem Bityutskiy -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130204/eafb7a5e/attachment.sig>