diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-10-11 12:40:21 +0800 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2013-11-06 23:32:52 -0800 |
commit | 39ac9ca336314b39df1488087c05a8214266869c (patch) | |
tree | c8cb68c5e1b463bf632e240215848dc2ae8d5f05 /drivers/mtd/devices/docg3.c | |
parent | 9fee840c03d944ed1564c127375a702e242d9555 (diff) |
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@trendmicro.com.cn>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/devices/docg3.c')
-rw-r--r-- | drivers/mtd/devices/docg3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c index 3e1b0a0ef4db..4f091c1a9981 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]); |