Re: [PATCH] USB: fix race between root-hub resume and wakeup requests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2 Feb 2011, Greg KH wrote:

> On Wed, Feb 02, 2011 at 01:59:33PM -0500, Alan Stern wrote:
> > The USB core keeps track of pending resume requests for root hubs, in
> > order to resolve races between wakeup requests and suspends.  However
> > the code that does this is subject to another race (between wakeup
> > requests and resumes) because the WAKEUP_PENDING flag is cleared
> > before the resume occurs, leaving a window in which another wakeup
> > request might arrive.
> > 
> > This patch (as1447) fixes the problem by clearing the WAKEUP_PENDING
> > flag after the resume instead of before it.
> > 
> > This fixes Bugzilla #24952.
> > 
> > Signed-off-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
> > Tested-by: Paul Bender <pebender@xxxxxxxxxx>
> > Tested-by: warpme <warpme@xxxxx>
> > CC: <stable@xxxxxxxxxx>
> > 
> > ---
> > 
> > This change applies only to the 2.6.36 and 2.6.37 stable kernels, not
> > any earlier ones.
> 
> So nothing is needed for .38 at all?

I meant that the patch should be applied to 2.6.38-rc and to
2.6.37-stable and 2.6.36-stable -- no other stable kernels need it.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux