Commit ba8cb309 authored by Teng Qin's avatar Teng Qin

Avoid unexpected log message on BPF program load error

parent 211a989b
......@@ -201,6 +201,7 @@ int bpf_prog_load(enum bpf_prog_type prog_type,
strerror(errno));
return ret;
}
bpf_log_buffer[0] = 0;
attr.log_buf = ptr_to_u64(bpf_log_buffer);
attr.log_size = buffer_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment