projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
constify iov_iter_count() and iter_is_iovec()
[cascardo/linux.git]
/
lib
/
test_bpf.c
diff --git
a/lib/test_bpf.c
b/lib/test_bpf.c
index
8f22fbe
..
93f4501
100644
(file)
--- 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));
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;
}
break;
}