]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
kirkwood: mpp: fix possible endless loop in kirkwood_mpp_conf()
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 24 Aug 2017 07:16:50 +0000 (09:16 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 24 Aug 2017 07:16:50 +0000 (09:16 +0200)
commit6af5a1ce5bc014a8375be44a77ddd35d2721d20a
tree07d7836586c0814ffc88eb91bf6ce1a673e74018
parent0c384211f0a1623dc3494f44f9f16c26dde941c0
kirkwood: mpp: fix possible endless loop in kirkwood_mpp_conf()

Using 'continue' in a loop is fatal if the last statement in the loop
increments the loop index.
Modify the loop to always increment the loop index (list pointer in
this case).
arch/arm/cpu/arm926ejs/kirkwood/mpp.c