diff options
| author | Eric Dumazet <[email protected]> | 2022-04-17 11:34:32 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-04-18 10:28:40 +0100 |
| commit | 843f77407eebee07c2a3300df0c4b33f64322e29 (patch) | |
| tree | 90d7a5df0d50c275334fa252a132ab1d9e2a295f /tools/perf/scripts/python | |
| parent | 53c33a16d0688fc20b38e00dbbc2cb2b695e7020 (diff) | |
tcp: fix signed/unsigned comparison
Kernel test robot reported:
smatch warnings:
net/ipv4/tcp_input.c:5966 tcp_rcv_established() warn: unsigned 'reason' is never less than zero.
I actually had one packetdrill failing because of this bug,
and was about to send the fix :)
v2: Andreas Schwab also pointed out that @reason needs to be negated
before we reach tcp_drop_reason()
Fixes: 4b506af9c5b8 ("tcp: add two drop reasons for tcp_ack()")
Signed-off-by: Eric Dumazet <[email protected]>
Reported-by: kernel test robot <[email protected]>
Reported-by: Andreas Schwab <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions