[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)
commitb4bb1bd7c20aeaf51607e7ffdbcc9f3b79094185
tree7872a81e27e67c9263b5f26abb57238de104deb4
parent03e5dcee4cab0361b14ef575db455e8de546a3e5
[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