]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 17 Feb 2020 11:07:05 +0000 (12:07 +0100)
commit9e0dc26ff686fac3135ef8d1ea344d1f2b3075ec
tree8c938b9ed9fa50e12bce80890d8b0f7269cf5d55
parent6f4b737ce8e67c81cfd422ef7368ef8848c35b3c
net: stmmac: fix a possible endless loop

BugLink: https://bugs.launchpad.net/bugs/1863588
[ Upstream commit 7d10f0774f9e32aa2f2e012f7fcb312a2ce422b9 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c