]> git.karo-electronics.de Git - linux-beck.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)
commit747598d5b6d1c825ad34fbf743e38113aaca597f
tree9bccb5e17daae7a6bdad3b3dbd51c617921c5ba5
parentefc0ac5a0e54657f74c2d6e73e146d249116a608
[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