]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: control: Don't access controls outside of protected regions
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 18 Jun 2014 11:32:33 +0000 (13:32 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 18 Jun 2014 13:13:07 +0000 (15:13 +0200)
commitca9ebf9f2b250df8a737122e3b204a36a8a986c8
tree1b68c534f868ec086cf78e864888c99bdb70f5b5
parente14fcc5ec26b2b2817b02cf5884c7e4d4d4ee618
ALSA: control: Don't access controls outside of protected regions

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control.c