[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220308094132.2736-1-hanyihao@vivo.com>
Date: Tue, 8 Mar 2022 01:41:32 -0800
From: Yihao Han <hanyihao@...o.com>
To: "Daniel W. S. Almeida" <dwlsalmeida@...il.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
linux-media@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: kernel@...o.com, Yihao Han <hanyihao@...o.com>
Subject: [PATCH] media: vidtv: use vfree() for memory allocated with vzalloc()
It is allocated with vzalloc(), the corresponding release function
should not be kfree(), use vfree() instead.
Generated by: scripts/coccinelle/api/kfree_mismatch.cocci
Signed-off-by: Yihao Han <hanyihao@...o.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.17.1
Powered by blists - more mailing lists