aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorKui-Feng Lee <[email protected]>2023-08-04 09:58:31 -0700
committerMartin KaFai Lau <[email protected]>2023-08-04 10:20:33 -0700
commit9eab71bd887ae28882c29a82cb0cdb00e1654c54 (patch)
treef99edba628ec3e31f81dee7fea847f4963ee6bc9 /tools/perf/scripts/python
parent21ce6abe178a15a0354eaaf86bea07e302075a20 (diff)
selftests/bpf: fix the incorrect verification of port numbers.
Check port numbers before calling htons(). According to Dan Carpenter's report, Smatch identified incorrect port number checks. It is expected that the returned port number is an integer, with negative numbers indicating errors. However, the value was mistakenly verified after being translated by htons(). Major changes from v1: - Move the variable 'port' to the same line of 'err'. Fixes: 539c7e67aa4a ("selftests/bpf: Verify that the cgroup_skb filters receive expected packets.") Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/bpf/[email protected]/ Acked-by: Yonghong Song <[email protected]> Signed-off-by: Kui-Feng Lee <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions