Staging: crystalhd: use vfree() instead of kfree()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 11 Oct 2013 04:39:28 +0000 (12:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2013 22:47:06 +0000 (15:47 -0700)
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>
drivers/staging/crystalhd/crystalhd_lnx.c

index a874a29..190b9b9 100644 (file)
@@ -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;
        }