On Wed, Mar 01, 2017 at 10:41:23PM +0530, jeeja.kp@xxxxxxxxx wrote: > From: Jeeja KP <jeeja.kp@xxxxxxxxx> > > 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 <Julia.Lawall@xxxxxxx> > Signed-off-by: Jeeja KP <jeeja.kp@xxxxxxxxx> Both: Acked-by: Vinod Koul <vinod.koul@xxxxxxxxx> -- ~Vinod _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel