summaryrefslogtreecommitdiffstats
path: root/kernel/futex.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2010-10-15 12:06:18 +0200
committerTakashi Iwai <tiwai@suse.de>2010-10-17 10:11:40 +0200
commitaa73aec6c385e2c797ac25cc7ccf0318031de7c8 (patch)
tree97ab3c6e917c2592f2c432c703a058ac0cebc574 /kernel/futex.c
parentcd07202cc8262e1669edff0d97715f3dd9260917 (diff)
downloadlinux-aa73aec6c385e2c797ac25cc7ccf0318031de7c8.tar.gz
linux-aa73aec6c385e2c797ac25cc7ccf0318031de7c8.tar.bz2
linux-aa73aec6c385e2c797ac25cc7ccf0318031de7c8.zip
ALSA: rawmidi: fix oops (use after free) when unloading a driver module
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> Cc: 2.6.30-2.6.35 <stable@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'kernel/futex.c')
0 files changed, 0 insertions, 0 deletions