aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace
diff options
context:
space:
mode:
authorLars-Peter Clausen <[email protected]>2013-08-01 18:30:38 +0200
committerMark Brown <[email protected]>2013-08-01 19:25:16 +0100
commitfe581391147cb3d738d961d0f1233d91a9e1113c (patch)
treecadab7c9e8b6913e9373c6fa6ae35981385c8221 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace
parent56a678344273fd63f8ade26876283a2586a9bf3a (diff)
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 <[email protected]> Tested-by: Stephen Warren <[email protected]> Signed-off-by: Mark Brown <[email protected]> Cc: [email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
0 files changed, 0 insertions, 0 deletions