Re: [stable] [PATCH] backlight: grab ops_lock before testingbd->ops

From: Uwe Kleine-König
Date: Tue Nov 23 2010 - 03:56:49 EST


Hi Greg,

On Mon, Nov 22, 2010 at 09:53:32AM -0800, Greg KH wrote:
> On Mon, Nov 22, 2010 at 11:05:32AM +0100, Uwe Kleine-König wrote:
> > Hello,
> >
> > On Mon, Nov 22, 2010 at 09:59:07AM +0000, Richard Purdie wrote:
> > > On Mon, 2010-11-22 at 10:43 +0100, Uwe Kleine-König wrote:
> > > > According to the comment describing ops_lock in the definition of
> > > > struct backlight_device and when comparing with other functions in
> > > > backlight.c the mutex must be hold when checking ops to be non-NULL.
> > > >
> > > > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
> > >
> > > Acked-by: Richard Purdie <rpurdie@xxxxxxxxxxxxxxx>
> > The problem was introduced by c835ee7f4154992e6cf0674d7ee136f5d36247a4
> > (that is in 2.6.29-rc1). Is this relevant for stable?
>
> Yes.
>
> What is the git commit id of the fix in Linus's tree?
I'll let you know when it hits his tree.

Best regards
Uwe

--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
--
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/