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:
Wei Yongjun 2013-10-11 12:39:28 +08:00 committed by Greg Kroah-Hartman
parent 5669601d92
commit a7d7b01631
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }