]> git.baikalelectronics.ru Git - kernel.git/commit
[media] go7007: don't use vb before test if it is not NULL
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Apr 2015 20:09:23 +0000 (17:09 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 30 Apr 2015 16:41:03 +0000 (13:41 -0300)
commitc02b0d910bb055b816f3ce0748bceb3d91ac87e4
tree9bccb5e17daae7a6bdad3b3dbd51c617921c5ba5
parenta0b4f9ecc6e866236ff126be77fda036d4d0dd35
[media] go7007: don't use vb before test if it is not NULL

As reported by smatch:
drivers/media/usb/go7007/go7007-driver.c:452 frame_boundary() warn: variable dereferenced before check 'vb' (see line 449)

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/go7007/go7007-driver.c