projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/mlx5e: Fix error codes in alloc_branch_attr()
[platform/kernel/linux-rpi.git]
/
kernel
/
bpf
/
stackmap.c
diff --git
a/kernel/bpf/stackmap.c
b/kernel/bpf/stackmap.c
index
b25fce4
..
458bb80
100644
(file)
--- a/
kernel/bpf/stackmap.c
+++ b/
kernel/bpf/stackmap.c
@@
-74,9
+74,6
@@
static struct bpf_map *stack_map_alloc(union bpf_attr *attr)
u64 cost, n_buckets;
int err;
- if (!bpf_capable())
- return ERR_PTR(-EPERM);
-
if (attr->map_flags & ~STACK_CREATE_FLAG_MASK)
return ERR_PTR(-EINVAL);