diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-06-18 13:32:33 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-26 15:10:29 -0400 |
commit | 291cd312b3c2826892299a74249fc9a88fb3305f (patch) | |
tree | adf90a1652d356bf6d1e56d89073cfb6eb7a5fc8 /lib/flex_array.c | |
parent | 8e6cbc9765746148dbebd35b2531f31b3ee8dbf8 (diff) |
ALSA: control: Don't access controls outside of protected regions
commit fd9f26e4eca5d08a27d12c0933fceef76ed9663d upstream.
A control that is visible on the card->controls list can be freed at any time.
This means we must not access any of its memory while not holding the
controls_rw_lock. Otherwise we risk a use after free access.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/flex_array.c')
0 files changed, 0 insertions, 0 deletions