[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220319073914.3341699-1-yangyingliang@huawei.com>
Date: Sat, 19 Mar 2022 15:39:14 +0800
From: Yang Yingliang <yangyingliang@...wei.com>
To: <linux-kernel@...r.kernel.org>, <linux-media@...r.kernel.org>
CC: <jiasheng@...as.ac.cn>, <hverkuil-cisco@...all.nl>,
<mchehab@...nel.org>
Subject: [PATCH -next] media: vidtv: use vfree() instead of kfree()
Use vfree() instead of kfree() to free vzalloc()
allocated data.
Fixes: e6a21a14106d ("media: vidtv: Check for null return of vzalloc")
Signed-off-by: Yang Yingliang <yangyingliang@...wei.com>
---
drivers/media/test-drivers/vidtv/vidtv_s302m.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/test-drivers/vidtv/vidtv_s302m.c b/drivers/media/test-drivers/vidtv/vidtv_s302m.c
index 4676083cee3b..9da18eac04b5 100644
--- a/drivers/media/test-drivers/vidtv/vidtv_s302m.c
+++ b/drivers/media/test-drivers/vidtv/vidtv_s302m.c
@@ -501,7 +501,7 @@ struct vidtv_encoder
return e;
out_kfree_buf:
- kfree(e->encoder_buf);
+ vfree(e->encoder_buf);
out_kfree_e:
kfree(e->name);
--
2.25.1
Powered by blists - more mailing lists