diff options
author | Jeeja KP <[email protected]> | 2017-03-01 22:41:23 +0530 |
---|---|---|
committer | Mark Brown <[email protected]> | 2017-03-06 11:42:29 +0100 |
commit | 04c8f2bf9117de7b8e8bc0b90e8c4bff15f4f613 (patch) | |
tree | 209653f1c1219571a5f005bdd12bfa937b32a256 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201 (diff) |
ASoC: hdac_hdmi: avoid reference to invalid variable of the pin list
Using pin list array iterator outside the iteration of the list can
point to dummy element, which can be invalid. So don't use pin variable
outside the pin list iteration.
This fixes the following coccinelle warning:
sound/soc/codecs/hdac_hdmi.c:1419:5-8: ERROR: invalid reference to the
index variable of the iterator
Fixes: 2acd8309a3a4('ASoC: hdac_hdmi: Add support to handle MST capable pin')
Reported-by: Julia Lawall <[email protected]>
Signed-off-by: Jeeja KP <[email protected]>
Acked-by: Vinod Koul <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions