WSL2-Linux-Kernel/drivers/media/pci
Miaoqian Lin 0597bcf774 media: tw686x: Fix memory leak in tw686x_video_init
[ Upstream commit e0b212ec9d ]

video_device_alloc() allocates memory for vdev,
when video_register_device() fails, it doesn't release the memory and
leads to memory leak, call video_device_release() to fix this.

Fixes: 704a84ccdb ("[media] media: Support Intersil/Techwell TW686x-based video capture cards")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:23:24 +02:00
..
b2c2
bt8xx
cobalt
cx18
cx88
cx23885
cx25821
ddbridge
dm1105
dt3155
intel
ivtv
mantis
meye
netup_unidvb
ngene
pluto2
pt1
pt3
saa7134
saa7146
saa7164
smipcie
solo6x10
sta2x11
ttpci
tw68
tw686x
tw5864
Kconfig
Makefile