From: Clemens Ladisch Date: Sat, 15 Oct 2011 21:19:25 +0000 (+0200) Subject: ALSA: ua101: fix crash when unplugging X-Git-Tag: v3.2-rc1~38^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=862a6244eb9f9f5123fe819454fcfcae0ee1f2f9;p=pandora-kernel.git ALSA: ua101: fix crash when unplugging If the device is unplugged while running, it is possible for a PCM device to be closed after the disconnect callback has returned. This means that kill_stream_urb() and disable_iso_interface() would try to access already-invalid or freed USB data structures. The function free_usb_related_resources() was intended to prevent this, but forgot to clear the affected variables. Reported-and-tested-by: Olivier Courtay Signed-off-by: Clemens Ladisch Cc: 2.6.33+ Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed