aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorSonia Sharma <[email protected]>2023-10-09 01:00:16 -0700
committerDavid S. Miller <[email protected]>2023-10-11 09:19:01 +0100
commit9bae5b05502210f7fb5ac24874ec2e0747401b6b (patch)
treef34f4b22c1765960b016c8208de8b4af46bf5590 /tools/perf/scripts/python/bin/stackcollapse-record
parent0e594c1f5d0f0f916f7512cac92ef3ba8c4ace1c (diff)
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 <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions