mirror_ubuntu-kernels/drivers/net/netdevsim
Colin Ian King ebbf5fcb94 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: d395381909 ("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>
2021-06-03 15:33:17 -07:00
..
bpf.c
bus.c netdevsim: Fix unsigned being compared to less than zero 2021-06-03 15:33:17 -07:00
dev.c netdevsim: Allow setting parent node of rate objects 2021-06-02 14:08:37 -07:00
ethtool.c
fib.c
health.c
ipsec.c
Makefile
netdev.c netdevsim: Implement legacy/switchdev mode for VFs 2021-06-02 14:08:36 -07:00
netdevsim.h netdevsim: Allow setting parent node of rate objects 2021-06-02 14:08:37 -07:00
psample.c netdevsim: Only use sampling truncation length when valid 2021-04-22 13:23:56 -07:00
udp_tunnels.c