media: davinci: vpif_capture: fix potential NULL deref
authorKevin Hilman <khilman@baylibre.com>
Tue, 11 Jul 2017 19:07:52 +0000 (15:07 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 19 Jul 2017 19:13:04 +0000 (15:13 -0400)
commit5a634ae0b158f845fe7f9603ae843f429b8a4c85
treefb61bec8e1c677d78526ae74dc144c3f22161061
parente5c50e130ddc7976a989b1412ded4cd35ac7a8b0
media: davinci: vpif_capture: fix potential NULL deref

Fix potential NULL pointer dereference in the error path of memory
allocation failure.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/davinci/vpif_capture.c