diff options
| author | Colin Ian King <colin.king@canonical.com> | 2017-08-08 12:52:32 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-08-09 07:07:41 +0300 |
| commit | 51ce3e2145cc3927c9551b8c3623610114b41651 (patch) | |
| tree | 6bf316536e4f3653559f89c81c040028a0748cba /include/linux/timerqueue.h | |
| parent | 4da1874190946b16d21b3c02e283b08619255c24 (diff) | |
| download | linux-51ce3e2145cc3927c9551b8c3623610114b41651.tar.xz | |
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: 69a60b0579a4 ("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>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
