diff --git a/src/libbpf.c b/src/libbpf.c index b5df6ac..e17867d 100644 --- a/src/libbpf.c +++ b/src/libbpf.c @@ -11234,7 +11234,7 @@ static int attach_raw_tp(const struct bpf_program *prog, long cookie, struct bpf } *link = bpf_program__attach_raw_tracepoint(prog, tp_name); - return libbpf_get_error(link); + return libbpf_get_error(*link); } /* Common logic for all BPF program types that attach to a btf_id */