Re: [linux-usb-devel] [patch]fix autosuspend race in skeleton driver

2007-02-08 Thread Alan Stern
On Thu, 8 Feb 2007, Oliver Neukum wrote: > Hi, > > as the skeleton driver was made ready for autosuspend a race condition > was introduced. The reference to get device must be gotten before the > autosuspend counter is upped, as this operation may sleep, dropping BKL. > Dropping BKL means that th

[linux-usb-devel] [patch]fix autosuspend race in skeleton driver

2007-02-08 Thread Oliver Neukum
Hi, as the skeleton driver was made ready for autosuspend a race condition was introduced. The reference to get device must be gotten before the autosuspend counter is upped, as this operation may sleep, dropping BKL. Dropping BKL means that the pointer to the device may become invalid. Here's the