Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] usbaudio: prevent oops & dead keyboard on usb unplugging while the device is being used

Without this patch, some usb kobjects, which are parents to the usx2y's
kobjects can be freed before the usx2y's. This led to an oops in
get_kobj_path_length() and a dead keyboard, when the usx2y's kobjects
were freed. The patch ensures the correct sequence. Tested ok on
kernel 2.6.12-rc2.

Present in ALSA cvs

Signed-off-by: Karsten Wiese <annabellesgarden@yahoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Karsten Wiese and committed by
Linus Torvalds
efa93dbe 9a476969

+1 -1
+1 -1
sound/usb/usbaudio.c
··· 3289 3289 } 3290 3290 usb_chip[chip->index] = NULL; 3291 3291 up(&register_mutex); 3292 - snd_card_free_in_thread(card); 3292 + snd_card_free(card); 3293 3293 } else { 3294 3294 up(&register_mutex); 3295 3295 }