aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2017-06-06 13:10:49 +0000
committerDavid S. Miller <[email protected]>2017-06-06 20:26:28 +0000
commit1d3028f4c16487d63861ab6c68451768a7a109df (patch)
treefc7e5b6114f4684d2ce8bc5410a1b849ce37255b /net/dsa/dsa.c
parentnet: stmmac: fix completely hung TX when using TSO (diff)
downloadkernel-1d3028f4c16487d63861ab6c68451768a7a109df.tar.gz
kernel-1d3028f4c16487d63861ab6c68451768a7a109df.zip
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dsa/dsa.c')
0 files changed, 0 insertions, 0 deletions