summaryrefslogtreecommitdiff
path: root/sound/soc/au1x/ac97c.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-08-01 16:30:38 (GMT)
committerMark Brown <broonie@linaro.org>2013-08-01 18:25:16 (GMT)
commitfe581391147cb3d738d961d0f1233d91a9e1113c (patch)
treecadab7c9e8b6913e9373c6fa6ae35981385c8221 /sound/soc/au1x/ac97c.c
parent56a678344273fd63f8ade26876283a2586a9bf3a (diff)
downloadlinux-fe581391147cb3d738d961d0f1233d91a9e1113c.tar.xz
ASoC: dapm: Fix empty list check in dapm_new_mux()
list_first_entry() will always return a valid pointer, even if the list is empty. So the check whether path is NULL will always be false. So we end up calling dapm_create_or_share_mixmux_kcontrol() with a path struct that points right in the middle of the widget struct and by trying to modify the path the widgets memory will become corrupted. Fix this by using list_emtpy() to check if the widget doesn't have any paths. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@linaro.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'sound/soc/au1x/ac97c.c')
0 files changed, 0 insertions, 0 deletions