mtg: docg3: use free_bch() instead of kfree()
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Wed Nov 13 13:59:04 EST 2013
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=39ac9ca336314b39df1488087c05a8214266869c
Commit: 39ac9ca336314b39df1488087c05a8214266869c
Parent: 9fee840c03d944ed1564c127375a702e242d9555
Author: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
AuthorDate: Fri Oct 11 12:40:21 2013 +0800
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Wed Nov 6 23:32:52 2013 -0800
mtg: docg3: use free_bch() instead of kfree()
Use free_bch() instead of kfree() to free init_bch()
allocated data.
Signed-off-by: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
Acked-by: Robert Jarzmik <robert.jarzmik at free.fr>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/devices/docg3.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c
index 3e1b0a0..4f091c1 100644
--- a/drivers/mtd/devices/docg3.c
+++ b/drivers/mtd/devices/docg3.c
@@ -2097,7 +2097,7 @@ notfound:
ret = -ENODEV;
dev_info(dev, "No supported DiskOnChip found\n");
err_probe:
- kfree(cascade->bch);
+ free_bch(cascade->bch);
for (floor = 0; floor < DOC_MAX_NBFLOORS; floor++)
if (cascade->floors[floor])
doc_release_device(cascade->floors[floor]);
More information about the linux-mtd-cvs
mailing list