Re: kernel OOPS when releasing usb webcam (random)

From: David Rientjes
Date: Tue Oct 18 2011 - 16:39:35 EST


On Tue, 18 Oct 2011, Antonio Ospite wrote:

> > > im getting the following null pointer dereference from time to time when
> > > releasing a usb camera.
> > >
> > > maybe this trace is of assistance...please reply to my mail since im not
> > > subscribed.
> > >
> >
> > I suspect this is happening in v4l2_device_unregister_subdev(). Adding
> > Guennadi, Mauro, and linux-media.
> >
> > > BUG: unable to handle kernel NULL pointer dereference at 0000006c
> > > IP: [<f90be6c2>] v4l2_device_release+0xa2/0xf0 [videodev]
>
> Hi,
>
> I sent a fix for a similar trace last week:
> http://patchwork.linuxtv.org/patch/8124/
>
> Tomas, can you test it fixes the problem for you too?
>

Tomas reported that the same change from Frederik Deweerdt fixed the
issue, so you can add his tested-by from
https://lkml.org/lkml/2011/10/18/298.

Guennadi or Mauro, how is this going to Linus? It sounds like 3.1
material since we've received at least a couple of reports of this in the
past week.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/