linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [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

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

Hi Laurent,

On Sun, Mar 11, 2012 at 17:20:08, Laurent Pinchart wrote:
> 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 ?

AFAIK, stable@kernel.org is down and the correct address is
stable@vger.kernel.org.

Also, you need to include the upstream commit id in the commit
message (See Documentation/stable_kernel_rules.txt)

Thanks,
Sekhar


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

* [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

* Re: [PATCH - stable v3.2] omap3isp: ccdc: Fix crash in HS/VS interrupt handler
  2012-03-11 11:59 ` Nori, Sekhar
@ 2012-03-11 12:08   ` Laurent Pinchart
  0 siblings, 0 replies; 7+ messages in thread
From: Laurent Pinchart @ 2012-03-11 12:08 UTC (permalink / raw)
  To: Nori, Sekhar; +Cc: linux-media@vger.kernel.org

Hi Sekhar,

On Sunday 11 March 2012 11:59:12 Nori, Sekhar wrote:
> On Sun, Mar 11, 2012 at 17:20:08, Laurent Pinchart wrote:
> > 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 ?
> 
> AFAIK, stable@kernel.org is down and the correct address is
> stable@vger.kernel.org.

Oops, my bad.

> Also, you need to include the upstream commit id in the commit
> message (See Documentation/stable_kernel_rules.txt)

I've resent the patch. Thank you.

-- 
Regards,

Laurent Pinchart


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

* Re: [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
  2012-03-13 18:20   ` Laurent Pinchart
  0 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2012-03-13 18:07 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: stable, linux-media

On Sun, Mar 11, 2012 at 01:07:43PM +0100, Laurent Pinchart wrote:
> 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.

In what tree?  I don't see that id in Linus's tree, are you sure you got
it correct?

confused,

greg k-h

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

* Re: [PATCH - stable v3.2] omap3isp: ccdc: Fix crash in HS/VS interrupt handler
  2012-03-13 18:07 ` Greg KH
@ 2012-03-13 18:20   ` Laurent Pinchart
  2012-03-13 19:31     ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Laurent Pinchart @ 2012-03-13 18:20 UTC (permalink / raw)
  To: Greg KH; +Cc: stable, linux-media

Hi Greg,

On Tuesday 13 March 2012 11:07:53 Greg KH wrote:
> On Sun, Mar 11, 2012 at 01:07:43PM +0100, Laurent Pinchart wrote:
> > 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.
> 
> In what tree?  I don't see that id in Linus's tree, are you sure you got
> it correct?
> 
> confused,

I must have been confused as well :-/

The upstream commit ID is bd0f2e6da7ea9e225cb2dbd3229e25584b0e9538. Sorry for 
the mistake.

-- 
Regards,

Laurent Pinchart


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

* Re: [PATCH - stable v3.2] omap3isp: ccdc: Fix crash in HS/VS interrupt handler
  2012-03-13 18:20   ` Laurent Pinchart
@ 2012-03-13 19:31     ` Greg KH
  0 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2012-03-13 19:31 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: stable, linux-media

On Tue, Mar 13, 2012 at 07:20:11PM +0100, Laurent Pinchart wrote:
> Hi Greg,
> 
> On Tuesday 13 March 2012 11:07:53 Greg KH wrote:
> > On Sun, Mar 11, 2012 at 01:07:43PM +0100, Laurent Pinchart wrote:
> > > 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.
> > 
> > In what tree?  I don't see that id in Linus's tree, are you sure you got
> > it correct?
> > 
> > confused,
> 
> I must have been confused as well :-/
> 
> The upstream commit ID is bd0f2e6da7ea9e225cb2dbd3229e25584b0e9538. Sorry for 
> the mistake.

No problem, now queued up, thanks.

greg k-h

^ permalink raw reply	[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 11:50 [PATCH - stable v3.2] omap3isp: ccdc: Fix crash in HS/VS interrupt handler Laurent Pinchart
2012-03-11 11:59 ` Nori, Sekhar
2012-03-11 12:08   ` Laurent Pinchart
  -- strict thread matches above, loose matches on Subject: below --
2012-03-11 12:07 Laurent Pinchart
2012-03-13 18:07 ` Greg KH
2012-03-13 18:20   ` Laurent Pinchart
2012-03-13 19:31     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).