[ALSA] Dereference after free in snd_hwdep_release()
authorFlorin Malita <fmalita@gmail.com>
Fri, 29 Sep 2006 10:55:25 +0000 (12:55 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 6 Oct 2006 18:22:59 +0000 (20:22 +0200)
commit104326f8df9925317cca64b84249d3eac5de7c74
treec97b00520884caf405da958c0f04b07ed21017f7
parent92b93d31718a3ccbbcf911d2f570bb345c496d66
[ALSA] Dereference after free in snd_hwdep_release()

snd_card_file_remove() may free hw->card so we can't dereference
hw->card->module after that.
Coverity ID 1420.

Signed-off-by: Florin Malita <fmalita@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/core/hwdep.c