Files
android_kernel_xiaomi_sm8450/drivers/net/phy
Colin Ian King 51ce3e2145 net: phy: mdio-bcm-unimac: fix unsigned wrap-around when decrementing timeout
Change post-decrement compare to pre-decrement to avoid an
unsigned integer wrap-around on timeout. This leads to the following
!timeout check to never to be true so -ETIMEDOUT is never returned.

Detected by CoverityScan, CID#1452623 ("Logically dead code")

Fixes: 69a60b0579 ("net: phy: mdio-bcm-unimac: factor busy polling loop")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-08-08 21:07:41 -07:00
..
2017-05-30 12:42:27 -04:00
2017-03-24 15:33:32 +01:00
2017-08-06 20:55:29 -07:00
2017-08-06 20:55:29 -07:00
2017-08-06 20:55:28 -07:00
2017-08-06 20:55:28 -07:00
2017-08-06 20:55:29 -07:00