OpenCloudOS-Kernel/drivers/media/pci/tw686x
Miaoqian Lin e0b212ec9d media: tw686x: Fix memory leak in tw686x_video_init
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>
2022-06-27 09:24:45 +01:00
..
Kconfig media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
Makefile
tw686x-audio.c media: tw686x: switch from 'pci_' to 'dma_' API 2021-04-06 16:07:26 +02:00
tw686x-core.c media: tw686x: Fix an error handling path in tw686x_probe() 2022-06-27 09:16:05 +01:00
tw686x-regs.h
tw686x-video.c media: tw686x: Fix memory leak in tw686x_video_init 2022-06-27 09:24:45 +01:00
tw686x.h