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)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 29 Mar 2019 11:43:17 +0000 (07:43 -0400)
commit2e7682ebfc750177a4944eeb56e97a3f05734528
treee33444d526e0cc61db08bdb3e03d5cc65fb8162b
parentf8ee34c3e77afd8cfc13f98e326325f17494f1e5
media: tw5864: Fix possible NULL pointer dereference in tw5864_handle_frame

'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>
drivers/media/pci/tw5864/tw5864-video.c