net/mlx5e: Fix error codes in alloc_branch_attr()
[platform/kernel/linux-rpi.git] / kernel / bpf / stackmap.c
index b25fce4..458bb80 100644 (file)
@@ -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);