commit | 1d3028f4c16487d63861ab6c68451768a7a109df | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Tue Jun 06 14:10:49 2017 +0100 |
committer | David S. Miller <davem@davemloft.net> | Tue Jun 06 16:26:28 2017 -0400 |
tree | fc7e5b6114f4684d2ce8bc5410a1b849ce37255b | |
parent | 426849e6611f2092553f8d53372ae310818a6292 [diff] |
net: stmmac: fix a broken u32 less than zero check The check that queue is less or equal to zero is always true because queue is a u32; queue is decremented and will wrap around and never go -ve. Fix this by making queue an int. Detected by CoverityScan, CID#1428988 ("Unsigned compared against 0") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>