ALSA: usb-audio: Avoid autopm calls after disconnection
authorTakashi Iwai <tiwai@suse.de>
Mon, 3 Dec 2012 10:12:46 +0000 (11:12 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 4 Dec 2012 06:27:27 +0000 (07:27 +0100)
commit59866da9e4ae54819e3c4e0a8f426bdb0c2ef993
tree345bf3e8be9d6f0ad9a19c18a531a68ee3dcd55d
parent467b10350525e53ddeea0b8de5b8b386a830d2a9
ALSA: usb-audio: Avoid autopm calls after disconnection

Add a similar protection against the disconnection race and the
invalid use of usb instance after disconnection, as well as we've done
for the USB audio PCM.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=51201

Reviewd-by: Clemens Ladisch <clemens@ladisch.de>
Tested-by: Clemens Ladisch <clemens@ladisch.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/midi.c