]> git.baikalelectronics.ru Git - kernel.git/commit
[media] 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)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 20 Dec 2011 11:30:10 +0000 (09:30 -0200)
commitcb88982ab2bc167c22363573892d93a033cb6ed8
tree2ffd9c915ffb9b94bc783778f1a5490d18102a89
parentaa29f87edc99118187c0382139589a6a8d34ed96
[media] omap3isp: ccdc: Fix crash in HS/VS interrupt handler

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>
drivers/media/video/omap3isp/ispccdc.c