public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH - stable v3.2] omap3isp: ccdc: Fix crash in HS/VS interrupt handler
@ 2012-03-11 12:07 Laurent Pinchart
  2012-03-13 18:07 ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Laurent Pinchart @ 2012-03-11 12:07 UTC (permalink / raw)
  To: stable; +Cc: linux-media

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.

The upstream commit ID is bcf45117d10140852fcdc2bfd36221dc8b996025.

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 |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/media/video/omap3isp/ispccdc.c b/drivers/media/video/omap3isp/ispccdc.c
index 54a4a3f..a319281 100644
--- a/drivers/media/video/omap3isp/ispccdc.c
+++ b/drivers/media/video/omap3isp/ispccdc.c
@@ -1406,8 +1406,7 @@ static int __ccdc_handle_stopping(struct isp_ccdc_device *ccdc, u32 event)
 
 static void ccdc_hs_vs_isr(struct isp_ccdc_device *ccdc)
 {
-	struct isp_pipeline *pipe =
-		to_isp_pipeline(&ccdc->video_out.video.entity);
+	struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity);
 	struct video_device *vdev = ccdc->subdev.devnode;
 	struct v4l2_event event;
 
-- 
Regards,

Laurent Pinchart


^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH - stable v3.2] omap3isp: ccdc: Fix crash in HS/VS interrupt handler
@ 2012-03-11 11:50 Laurent Pinchart
  2012-03-11 11:59 ` Nori, Sekhar
  0 siblings, 1 reply; 7+ messages in thread
From: Laurent Pinchart @ 2012-03-11 11:50 UTC (permalink / raw)
  To: stable; +Cc: linux-media

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 |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

The patch fixes a v3.2 bug and has been included in v3.3-rc1. Could you please
add it to the stable v3.2 series ?

diff --git a/drivers/media/video/omap3isp/ispccdc.c b/drivers/media/video/omap3isp/ispccdc.c
index 54a4a3f..a319281 100644
--- a/drivers/media/video/omap3isp/ispccdc.c
+++ b/drivers/media/video/omap3isp/ispccdc.c
@@ -1406,8 +1406,7 @@ static int __ccdc_handle_stopping(struct isp_ccdc_device *ccdc, u32 event)
 
 static void ccdc_hs_vs_isr(struct isp_ccdc_device *ccdc)
 {
-	struct isp_pipeline *pipe =
-		to_isp_pipeline(&ccdc->video_out.video.entity);
+	struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity);
 	struct video_device *vdev = ccdc->subdev.devnode;
 	struct v4l2_event event;
 
-- 
Regards,

Laurent Pinchart


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-13 19:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-11 12:07 [PATCH - stable v3.2] omap3isp: ccdc: Fix crash in HS/VS interrupt handler Laurent Pinchart
2012-03-13 18:07 ` Greg KH
2012-03-13 18:20   ` Laurent Pinchart
2012-03-13 19:31     ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2012-03-11 11:50 Laurent Pinchart
2012-03-11 11:59 ` Nori, Sekhar
2012-03-11 12:08   ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox