linux_dsm_epyc7002/drivers/media/pci/tw686x
Krzysztof Ha?asa 5a1a2f63d8 media: tw686x: Fix oops on buffer alloc failure
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>
2018-07-25 08:34:28 -04:00
..
Kconfig media: Remove depends on HAS_DMA in case of platform dependency 2018-05-28 16:17:08 -04:00
Makefile
tw686x-audio.c [media] pci: constify snd_pcm_ops structures 2016-09-19 16:18:42 -03:00
tw686x-core.c media updates for v4.15-rc1 2017-11-15 20:30:12 -08:00
tw686x-regs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
tw686x-video.c media: tw686x: Fix oops on buffer alloc failure 2018-07-25 08:34:28 -04: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