mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
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>
This commit is contained in:
parent
9fee840c03
commit
39ac9ca336
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user