From: Wei Yongjun Date: Fri, 11 Oct 2013 04:39:28 +0000 (+0800) Subject: Staging: crystalhd: use vfree() instead of kfree() X-Git-Tag: v3.13-rc1~170^2~303 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7d7b0163178b85546a075276a81f27c8c24b786;p=kernel%2Fkernel-generic.git Staging: crystalhd: use vfree() instead of kfree() Use vfree() instead of kfree() to free vmalloc() allocated data. Signed-off-by: Wei Yongjun Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/crystalhd/crystalhd_lnx.c b/drivers/staging/crystalhd/crystalhd_lnx.c index a874a29..190b9b9 100644 --- a/drivers/staging/crystalhd/crystalhd_lnx.c +++ b/drivers/staging/crystalhd/crystalhd_lnx.c @@ -157,7 +157,7 @@ static int chd_dec_fetch_cdata(struct crystalhd_adp *adp, if (rc) { BCMLOG_ERR("failed to pull add_cdata sz:%x ua_off:%x\n", io->add_cdata_sz, (unsigned int)ua_off); - kfree(io->add_cdata); + vfree(io->add_cdata); io->add_cdata = NULL; return -ENODATA; }