mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 10:26:09 +00:00
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:
parent
4df312b9ca
commit
298cf3dfac
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user