From: Lars-Peter Clausen Date: Wed, 18 Jun 2014 11:32:33 +0000 (+0200) Subject: ALSA: control: Don't access controls outside of protected regions X-Git-Tag: v3.2.61~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79b789d8e20e22196285ac98247b5aeee2cade17;p=pandora-kernel.git 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 Acked-by: Jaroslav Kysela Signed-off-by: Takashi Iwai Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed