| commit | 7d10f0774f9e32aa2f2e012f7fcb312a2ce422b9 | [log] [tgz] |
|---|---|---|
| author | Dejin Zheng <zhengdejin5@gmail.com> | Thu Feb 06 23:29:17 2020 +0800 |
| committer | David S. Miller <davem@davemloft.net> | Fri Feb 07 11:23:34 2020 +0100 |
| tree | 104e83d43c2e97ac2f2f26392b5b93e65411e894 | |
| parent | 963485d436ccc2810177a7b08af22336ec2af67b [diff] |
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: a7c30e62d4b8 ("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>