]> git.baikalelectronics.ru Git - kernel.git/commit
[media] drivers: media: platform: vivid: Fix possible null derefrence
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Fri, 6 Mar 2015 02:39:40 +0000 (23:39 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 2 Apr 2015 21:10:38 +0000 (18:10 -0300)
commit8322b45b029e831b3977a3c285dea75c15a20926
tree8d9de85d40ac685b0728718d54945589d9fa4dbf
parentccd4f0b8aab35d97e9c30f63d8b8ce8120b719f6
[media] drivers: media: platform: vivid: Fix possible null derefrence

Check for dev_fmt being null before derefrencing it, to assign it
to planes.

Found using Coccinelle.

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vivid/vivid-vid-out.c