summaryrefslogtreecommitdiff
path: root/include/net/sock.h
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-06-03 22:56:57 +0100
committerDavid S. Miller <davem@davemloft.net>2021-06-03 15:33:17 -0700
commitebbf5fcb94a7f3499747b282420a1c5f7e8d1c6f (patch)
tree91da4856ac82faedcf9bb25ed004ffd291d05a87 /include/net/sock.h
parente32ea44c7ae476f4c90e35ab0a29dc8ff082bc11 (diff)
netdevsim: Fix unsigned being compared to less than zero
The comparison of len < 0 is always false because len is a size_t. Fix this by making len a ssize_t instead. Addresses-Coverity: ("Unsigned compared against 0") Fixes: d395381909a3 ("netdevsim: Add max_vfs to bus_dev") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
0 files changed, 0 insertions, 0 deletions