summaryrefslogtreecommitdiffstats
path: root/sound/core/control.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2011-10-15 23:19:25 +0200
committerTakashi Iwai <tiwai@suse.de>2011-11-06 11:21:42 +0100
commit862a6244eb9f9f5123fe819454fcfcae0ee1f2f9 (patch)
treec2b1afb1818dd722c7026ebd0047972a32845d20 /sound/core/control.c
parent6bcbf64ace40d6833622d85701218a8bb7a4f207 (diff)
downloadop-kernel-dev-862a6244eb9f9f5123fe819454fcfcae0ee1f2f9.zip
op-kernel-dev-862a6244eb9f9f5123fe819454fcfcae0ee1f2f9.tar.gz
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 <olivier@courtay.org> Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Cc: 2.6.33+ <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/control.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud