X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=lib%2Ftest_bpf.c;h=93f45011a59d01ef017aa2a1a4a68ee6f4060bce;hb=f7c9fe4b1cd144f7afc1712bb25141c55c406e1b;hp=8f22fbedc3a699d07f05375d0a0832cc9da1d1b0;hpb=83652a39d724c20f050560f314b771a0289fd571;p=cascardo%2Flinux.git diff --git a/lib/test_bpf.c b/lib/test_bpf.c index 8f22fbedc3a6..93f45011a59d 100644 --- a/lib/test_bpf.c +++ b/lib/test_bpf.c @@ -5621,7 +5621,10 @@ static struct bpf_prog *generate_filter(int which, int *err) fp->type = BPF_PROG_TYPE_SOCKET_FILTER; memcpy(fp->insnsi, fptr, fp->len * sizeof(struct bpf_insn)); - bpf_prog_select_runtime(fp); + /* We cannot error here as we don't need type compatibility + * checks. + */ + fp = bpf_prog_select_runtime(fp, err); break; }