[media] s5k5baf: Add missing error check for devm_kzalloc
authorKiran Padwal <kiran.padwal@smartplayin.com>
Thu, 5 Feb 2015 10:09:10 +0000 (07:09 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 8 Apr 2015 10:59:23 +0000 (07:59 -0300)
commit51b5b3d6c96ee244c51ec57265fc3c5ae5897610
tree1fc2f612549e515aad131a28b4064ae8f43c2b91
parent5ed1c328ea077d70e1ebcd5188dc77cdc754df3a
[media] s5k5baf: Add missing error check for devm_kzalloc

This patch add a missing a check on the return value of devm_kzalloc,
which would cause a NULL pointer dereference in a OOM situation.

Signed-off-by: Kiran Padwal <kiran.padwal@smartplayin.com>
Acked-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/s5k5baf.c