Commit 298cf3df authored by Yihao Han's avatar Yihao Han Committed by Mauro Carvalho Chehab
Browse files

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: default avatarYihao Han <hanyihao@vivo.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 4df312b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);