]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] ALSA: Dereference after free in snd_hwdep_release()
authorFlorin Malita <fmalita@gmail.com>
Mon, 16 Oct 2006 12:43:43 +0000 (14:43 +0200)
committerChris Wright <chrisw@sous-sol.org>
Sat, 4 Nov 2006 01:33:45 +0000 (17:33 -0800)
commite0cd3e38de139be4929fe8b18d85da585580420b
tree3497a1987680424730e9ecfd5d063c0763bbf5d3
parent0136d6eaf1356d5c484e84664f7688de895daaf6
[PATCH] 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.

This bug actually causes an Oops at usb-disconnection, especially
with CONFIG_PREEMPT.

From: Florin Malita <fmalita@gmail.com>
Signed-off-by: Florin Malita <fmalita@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
sound/core/hwdep.c