[media] media: omap3isp: fix a potential NULL deref
authorOhad Ben-Cohen <ohad@wizery.com>
Wed, 1 Jun 2011 16:39:46 +0000 (13:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 1 Jul 2011 02:01:05 +0000 (23:01 -0300)
commitca4186f06fecbf2b692a42cdea54b7ef23b2496c
tree80f5438034d6612ac4b18f35a14ed9c66d254663
parent66072d4fa7cb644f1f064e290f8fddfbd8ccd478
[media] media: omap3isp: fix a potential NULL deref

Fix a potential NULL pointer dereference by skipping registration of
external entities in case none are provided.

This is useful at least when testing mere memory-to-memory scenarios.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/omap3isp/isp.c