]> git.baikalelectronics.ru Git - kernel.git/commit
[media] s3c-camif: Check if fmt is NULL before use
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Apr 2015 15:12:09 +0000 (12:12 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 30 Apr 2015 16:38:36 +0000 (13:38 -0300)
commitba312cbffe7a15f4085f6c3389439ec0f4f39280
tree7872a81e27e67c9263b5f26abb57238de104deb4
parent35eaea5ba2b7487fcdaaf8114c78a83c5cf18411
[media] s3c-camif: Check if fmt is NULL before use

As reported by smatch:
drivers/media/platform/s3c-camif/camif-capture.c:463 queue_setup() warn: variable dereferenced before check 'fmt' (see line 460)

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/s3c-camif/camif-capture.c