]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
media: tw5864: Fix possible NULL pointer dereference in tw5864_handle_frame
authorYueHaibing <yuehaibing@huawei.com>
Fri, 15 Mar 2019 02:01:24 +0000 (22:01 -0400)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commitb6664956637e87978e2f17e54f16122ecfdd43b2
tree5f1cdba871b1b0b1bda455f1fd272a14caedc27e
parent08b0aee210cd15ff161acd54b102fd19c3280493
media: tw5864: Fix possible NULL pointer dereference in tw5864_handle_frame

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit 2e7682ebfc750177a4944eeb56e97a3f05734528 ]

'vb' null check should be done before dereferencing it in
tw5864_handle_frame, otherwise a NULL pointer dereference
may occur.

Fixes: 34d1324edd31 ("[media] pci: Add tw5864 driver")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/media/pci/tw5864/tw5864-video.c