Commit a7d7b016 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman

Staging: crystalhd: use vfree() instead of kfree()

Use vfree() instead of kfree() to free vmalloc()
allocated data.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5669601d
...@@ -157,7 +157,7 @@ static int chd_dec_fetch_cdata(struct crystalhd_adp *adp, ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment