Staging: crystalhd: use vfree() instead of kfree()
Use vfree() instead of kfree() to free vmalloc() allocated data. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5669601d92
commit
a7d7b01631
|
@ -157,7 +157,7 @@ static int chd_dec_fetch_cdata(struct crystalhd_adp *adp,
|
||||||
if (rc) {
|
if (rc) {
|
||||||
BCMLOG_ERR("failed to pull add_cdata sz:%x ua_off:%x\n",
|
BCMLOG_ERR("failed to pull add_cdata sz:%x ua_off:%x\n",
|
||||||
io->add_cdata_sz, (unsigned int)ua_off);
|
io->add_cdata_sz, (unsigned int)ua_off);
|
||||||
kfree(io->add_cdata);
|
vfree(io->add_cdata);
|
||||||
io->add_cdata = NULL;
|
io->add_cdata = NULL;
|
||||||
return -ENODATA;
|
return -ENODATA;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue