[ALSA] prevent oops & dead keyboard on usb unplugging while the device is being used
commit230cd5e24853ed4dd960461989b8ed0986d37a99
authorKarsten Wiese <annabellesgarden@yahoo.de>
Wed, 20 Apr 2005 08:12:35 +0000 (20 10:12 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sun, 29 May 2005 08:04:47 +0000 (29 10:04 +0200)
tree234496e25ba4fbbd6e920829987afc1f9fcade78
parentfe5ac9dcfe3b219209cf8e08347cce47658267d0
[ALSA] prevent oops & dead keyboard on usb unplugging while the device is being used

USB generic driver,USB USX2Y
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.

Signed-off-by: Karsten Wiese <annabellesgarden@yahoo.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/usbaudio.c
sound/usb/usx2y/usbusx2y.c