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: omap-for-v3.17/soc-cleanup~72^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd9f26e4eca5d08a27d12c0933fceef76ed9663d;p=pandora-kernel.git 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 Acked-by: Jaroslav Kysela Cc: Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed