Re: [BUG] usbaudio on EHCI controller
Oliver Neukum <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Organization | Novell |
| Message-ID | <[email protected]> |
Am Mittwoch, 5. Dezember 2007 12:31:02 schrieb Brandon Philips: > Hello- > > I ran into this bug while running: krecord -d /dev/dsp1 and unplugging > my usb microphone. > > It is reproducible and the patch at the bottom of this email fixes it. > However, I feel that the root cause, which I was unable to find after a > bit of poking, isn't really fixed. It seems to me that snd_usb_hw_free() which is exported races with itself, as it is called from disconnect(). The way snd_usb_audio_disconnect() operates, every exported function needs to hold register_mutex. Something is fishy in this driver's disconnect handling. Brandon, your patch is correct, but there are other places, you'd need to hold the mutex, too. Regards Oliver ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel