aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2020-09-16 20:18:21 +0000
committerSteve French <[email protected]>2020-10-22 17:17:52 +0000
commitd367cb960ce88914898cbfa43645c2e43ede9465 (patch)
tree43016086940927a504c63fd7c418e18c29629b96 /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
parentsmb3.1.1: fix typo in compression flag (diff)
downloadkernel-d367cb960ce88914898cbfa43645c2e43ede9465.tar.gz
kernel-d367cb960ce88914898cbfa43645c2e43ede9465.zip
cifs: remove bogus debug code
The "end" pointer is either NULL or it points to the next byte to parse. If there isn't a next byte then dereferencing "end" is an off-by-one out of bounds error. And, of course, if it's NULL that leads to an Oops. Printing "*end" doesn't seem very useful so let's delete this code. Also for the last debug statement, I noticed that it should be printing "sequence_end" instead of "end" so fix that as well. Reported-by: Dominik Maier <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c')
0 files changed, 0 insertions, 0 deletions