diff options
author | Yihao Han | 2022-03-08 10:41:32 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab | 2022-03-18 07:28:17 +0100 |
commit | 298cf3dfacc971350be102ddb55bbc2916e32e34 (patch) | |
tree | 143b00eb5719690800e5f69dd2ded30289b57add /drivers/media | |
parent | 4df312b9caf289db5fbeada69d44eaa6daeaae3a (diff) |
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@vivo.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/test-drivers/vidtv/vidtv_s302m.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |