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>
This commit is contained in:
Yihao Han 2022-03-08 10:41:32 +01:00 committed by Mauro Carvalho Chehab
parent 4df312b9ca
commit 298cf3dfac

View File

@ -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);