File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tools/testing/selftests/bpf/progs Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,20 +41,20 @@ int handler64_unsigned(void *regs)
41
41
{
42
42
int pid = bpf_get_current_pid_tgid () >> 32 ;
43
43
void * payload = payload1 ;
44
- u64 len ;
44
+ long len ;
45
45
46
46
/* ignore irrelevant invocations */
47
47
if (test_pid != pid || !capture )
48
48
return 0 ;
49
49
50
50
len = bpf_probe_read_kernel_str (payload , MAX_LEN , & buf_in1 [0 ]);
51
- if (len <= MAX_LEN ) {
51
+ if (len >= 0 ) {
52
52
payload += len ;
53
53
payload1_len1 = len ;
54
54
}
55
55
56
56
len = bpf_probe_read_kernel_str (payload , MAX_LEN , & buf_in2 [0 ]);
57
- if (len <= MAX_LEN ) {
57
+ if (len >= 0 ) {
58
58
payload += len ;
59
59
payload1_len2 = len ;
60
60
}
@@ -123,7 +123,7 @@ int handler32_signed(void *regs)
123
123
{
124
124
int pid = bpf_get_current_pid_tgid () >> 32 ;
125
125
void * payload = payload4 ;
126
- int len ;
126
+ long len ;
127
127
128
128
/* ignore irrelevant invocations */
129
129
if (test_pid != pid || !capture )
You can’t perform that action at this time.
0 commit comments