ALSA: usb-audio - Avoid Oops after disconnect
authorTakashi Iwai <tiwai@suse.de>
Mon, 28 Dec 2009 11:24:22 +0000 (12:24 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Feb 2010 15:37:56 +0000 (07:37 -0800)
commitd13e7a58664e0e35db5e524176cb70143c7c07c2
treed61ce67d2e298e202d968cbc11edde7d5254331d
parent98baa75bcbacb200b7e4e0ee01b508f4d459d8ce
ALSA: usb-audio - Avoid Oops after disconnect

commit 78b8d5d2ee280c463908fd75f3bdf246bcb6ac8d upstream.

As the release of substreams may be done asynchronously from the
disconnection, close callback needs to check the shutdown flag before
actually accessing the usb interface.

Reference: Novell bnc#505027
http://bugzilla.novell.com/show_bug.cgi?id=565027

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/usb/usbaudio.c