Files
linux/sound/core
Clemens Ladisch 28b4c9130b ALSA: rawmidi: fix oops (use after free) when unloading a driver module
commit aa73aec6c3 upstream.

When a driver module is unloaded and the last still open file is a raw
MIDI device, the card and its devices will be actually freed in the
snd_card_file_remove() call when that file is closed.  Afterwards, rmidi
and rmidi->card point into freed memory, so the module pointer is likely
to be garbage.
(This was introduced by commit 9a1b64caac82aa02cb74587ffc798e6f42c6170a.)

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Reported-by: Krzysztof Foltman <wdev@foltman.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-28 21:43:53 -07:00
..
2009-12-18 14:03:29 -08:00
2008-01-31 17:29:48 +01:00
2008-01-31 17:29:48 +01:00
2009-08-27 17:42:08 +02:00
2008-10-18 11:05:36 +02:00
2009-01-06 15:59:11 -08:00
2009-04-14 12:39:12 +02:00