linux-brain/drivers/media/pci/tw686x
Krzysztof Ha?asa 8992a70297 media: tw686x: Fix oops on buffer alloc failure
[ Upstream commit 5a1a2f63d8 ]

The error path currently calls tw686x_video_free() which requires
vc->dev to be initialized, causing a NULL dereference on uninitizalized
channels.

Fix this by setting the vc->dev fields for all the channels first.

Fixes: f8afaa8dbc ("[media] tw686x: Introduce an interface to support multiple DMA modes")

Signed-off-by: Krzysztof Ha?asa <khalasa@piap.pl>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-26 08:36:31 +02:00
..
Kconfig [media] tw686x: Add support for DMA scatter-gather mode 2016-06-28 07:50:09 -03:00
Makefile [media] media: Support Intersil/Techwell TW686x-based video capture cards 2016-04-20 13:37:32 -03:00
tw686x-audio.c [media] pci: constify snd_pcm_ops structures 2016-09-19 16:18:42 -03:00
tw686x-core.c [media] tw686x: be explicit about the possible dma_mode options 2016-06-28 07:53:28 -03:00
tw686x-regs.h [media] tw686x: audio: Allow to configure the period size 2016-06-28 07:52:12 -03:00
tw686x-video.c media: tw686x: Fix oops on buffer alloc failure 2018-09-26 08:36:31 +02:00
tw686x.h [media] media/pci/tw686x: convert driver to use the new vb2_queue dev field 2016-07-08 14:37:50 -03:00