]> git.karo-electronics.de Git - karo-tx-linux.git/commit
omap3isp: ccdc: Fix crash in HS/VS interrupt handler
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 11 Nov 2011 14:22:20 +0000 (11:22 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Mar 2012 16:02:19 +0000 (09:02 -0700)
commitdc64836942762c64b155729921acb2841570d16e
tree70d74469d9bbb233ce796c508ba880b9f24abe5f
parentf043ddb60c84ea64a23b755004572afe922e653c
omap3isp: ccdc: Fix crash in HS/VS interrupt handler

commit bd0f2e6da7ea9e225cb2dbd3229e25584b0e9538 upstream.

The HS/VS interrupt handler needs to access the pipeline object. It
erronously tries to get it from the CCDC output video node, which isn't
necessarily included in the pipeline. This leads to a NULL pointer
dereference.

Fix the bug by getting the pipeline object from the CCDC subdev entity.

Reported-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/video/omap3isp/ispccdc.c