linux/drivers/net/hyperv
Sonia Sharma 9bae5b0550 hv_netvsc: fix netvsc_send_completion to avoid multiple message length checks
The switch statement in netvsc_send_completion() is incorrectly validating
the length of incoming network packets by falling through to the next case.
Avoid the fallthrough. Instead break after a case match and then process
the complete() call.
The current code has not caused any known failures. But nonetheless, the
code should be corrected as a different ordering of the switch cases might
cause a length check to fail when it should not.

Signed-off-by: Sonia Sharma <sonia.sharma@linux.microsoft.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-10-11 09:19:01 +01:00
..
hyperv_net.h eth: add missing xdp.h includes in drivers 2023-08-03 08:38:07 -07:00
Kconfig
Makefile hv_netvsc: Add XDP support 2020-01-25 10:43:19 +01:00
netvsc_bpf.c hv_netvsc: Add support for XDP_REDIRECT 2022-04-11 18:25:47 -07:00
netvsc_drv.c hv_netvsc: Allocate rx indirection table size dynamically 2023-06-07 09:46:49 +01:00
netvsc_trace.c
netvsc_trace.h
netvsc.c hv_netvsc: fix netvsc_send_completion to avoid multiple message length checks 2023-10-11 09:19:01 +01:00
rndis_filter.c hv_netvsc: Allocate rx indirection table size dynamically 2023-06-07 09:46:49 +01:00