[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAPgLHd_Ec7EmzCioPsULjQ0eOoRpx3jHwa-Gr1oTdzqChkX+XQ@mail.gmail.com>
Date: Fri, 11 Oct 2013 12:39:28 +0800
From: Wei Yongjun <weiyj.lk@...il.com>
To: nsankar@...adcom.com, jarod@...sonet.com, davilla@....com,
abraham.manu@...il.com, gregkh@...uxfoundation.org,
wfp5p@...ginia.edu, amarjargal16@...il.com,
dan.carpenter@...cle.com
Cc: yongjun_wei@...ndmicro.com.cn, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] Staging: crystalhd: use vfree() instead of kfree()
From: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
Use vfree() instead of kfree() to free vmalloc()
allocated data.
Signed-off-by: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
---
drivers/staging/crystalhd/crystalhd_lnx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/crystalhd/crystalhd_lnx.c b/drivers/staging/crystalhd/crystalhd_lnx.c
index b17fbf8..e0c28ed 100644
--- a/drivers/staging/crystalhd/crystalhd_lnx.c
+++ b/drivers/staging/crystalhd/crystalhd_lnx.c
@@ -156,7 +156,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;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists