diff options
Diffstat (limited to 'kernel/bpf/devmap.c')
| -rw-r--r-- | kernel/bpf/devmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/devmap.c b/kernel/bpf/devmap.c index b84c44505e06..40e86a7e0ef0 100644 --- a/kernel/bpf/devmap.c +++ b/kernel/bpf/devmap.c | |||
| @@ -80,8 +80,8 @@ static u64 dev_map_bitmap_size(const union bpf_attr *attr) | |||
| 80 | static struct bpf_map *dev_map_alloc(union bpf_attr *attr) | 80 | static struct bpf_map *dev_map_alloc(union bpf_attr *attr) |
| 81 | { | 81 | { |
| 82 | struct bpf_dtab *dtab; | 82 | struct bpf_dtab *dtab; |
| 83 | int err = -EINVAL; | ||
| 84 | u64 cost; | 83 | u64 cost; |
| 84 | int err; | ||
| 85 | 85 | ||
| 86 | if (!capable(CAP_NET_ADMIN)) | 86 | if (!capable(CAP_NET_ADMIN)) |
| 87 | return ERR_PTR(-EPERM); | 87 | return ERR_PTR(-EPERM); |
