diff options
Diffstat (limited to 'kernel/bpf')
-rw-r--r-- | kernel/bpf/map_in_map.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/bpf/map_in_map.c b/kernel/bpf/map_in_map.c index 1da574612bea..3bfbf4464416 100644 --- a/kernel/bpf/map_in_map.c +++ b/kernel/bpf/map_in_map.c | |||
@@ -23,7 +23,8 @@ struct bpf_map *bpf_map_meta_alloc(int inner_map_ufd) | |||
23 | * is a runtime binding. Doing static check alone | 23 | * is a runtime binding. Doing static check alone |
24 | * in the verifier is not enough. | 24 | * in the verifier is not enough. |
25 | */ | 25 | */ |
26 | if (inner_map->map_type == BPF_MAP_TYPE_PROG_ARRAY) { | 26 | if (inner_map->map_type == BPF_MAP_TYPE_PROG_ARRAY || |
27 | inner_map->map_type == BPF_MAP_TYPE_CGROUP_STORAGE) { | ||
27 | fdput(f); | 28 | fdput(f); |
28 | return ERR_PTR(-ENOTSUPP); | 29 | return ERR_PTR(-ENOTSUPP); |
29 | } | 30 | } |