]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/bpf/stackmap.c
bpf: fix wrong exposure of map_flags into fdinfo for lpm
[karo-tx-linux.git] / kernel / bpf / stackmap.c
index 4dfd6f2ec2f9725681f490971e60acc8033c64b6..31147d730abf532cc8f10efc9a871b5dd498928d 100644 (file)
@@ -88,6 +88,7 @@ static struct bpf_map *stack_map_alloc(union bpf_attr *attr)
        smap->map.key_size = attr->key_size;
        smap->map.value_size = value_size;
        smap->map.max_entries = attr->max_entries;
+       smap->map.map_flags = attr->map_flags;
        smap->n_buckets = n_buckets;
        smap->map.pages = round_up(cost, PAGE_SIZE) >> PAGE_SHIFT;