OSDN Git Service

[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)
commit4eaa3a6cc4c577103d678492ec50979b3aa360a4
tree8d9de85d40ac685b0728718d54945589d9fa4dbf
parent64bf8049a2ec1e61e1475eb02b5514d7061d443e
[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