[ALSA] snd_hwdep_release() racefix
authorKarsten Wiese <fzu@wemgehoertderstaat.de>
Wed, 31 Jan 2007 09:05:30 +0000 (10:05 +0100)
committerJaroslav Kysela <perex@suse.cz>
Fri, 9 Feb 2007 08:03:24 +0000 (09:03 +0100)
commit8fa58af7db56077d6a042fd7b9dd4c9515e1c37b
tree759062886223b266c4200e8abab82789a9c5ba62
parent298a2c753a5ae2f0e230a57e94843d248f0033e2
[ALSA] snd_hwdep_release() racefix

snd_card_file_remove() can free the snd_card.
Touch hw->* only before calling snd_card_file_remove().
Unrelated: Allow hwdep devices not to have own ops.release();

Signed-off-by: Karsten Wiese <fzu@wemgehoertderstaat.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/core/hwdep.c