]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: fix a possible endless loop
authorDejin Zheng <zhengdejin5@gmail.com>
Thu, 6 Feb 2020 15:29:17 +0000 (23:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Feb 2020 10:23:34 +0000 (11:23 +0100)
commit0b3955d19453d36d892422ad96584a2e5e3bfe3e
tree104e83d43c2e97ac2f2f26392b5b93e65411e894
parent9cb04dab65f4994454fb0529c0471ba1abd0a173
net: stmmac: fix a possible endless loop

It forgot to reduce the value of the variable retry in a while loop
in the ethqos_configure() function. It may cause an endless loop and
without timeout.

Fixes: 9a87948aa144 ("net: stmmac: Add driver for Qualcomm ethqos")
Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c