From: Takashi Iwai Date: Sat, 10 Apr 2010 19:27:23 +0000 (+0200) Subject: ALSA: usb - Fix Oops after usb-midi disconnection X-Git-Tag: v2.6.34-rc5~12^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29aac005ff4dc8a5f50b80f4e5c4f59b21c0fb50;p=pandora-kernel.git ALSA: usb - Fix Oops after usb-midi disconnection usb-midi causes sometimes Oops at snd_usbmidi_output_drain() after disconnection. This is due to the access to the endpoints which have been already released at disconnection while the files are still alive. This patch fixes the problem by checking disconnection state at snd_usbmidi_output_drain() and by releasing urbs but keeping the endpoint instances until really all freed. Tested-by: Tvrtko Ursulin Cc: Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed