diff options
-rw-r--r-- | kernel/bpf/arraymap.c | 2 | ||||
-rw-r--r-- | kernel/bpf/sockmap.c | 2 | ||||
-rw-r--r-- | kernel/bpf/stackmap.c | 2 | ||||
-rw-r--r-- | kernel/bpf/xskmap.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/kernel/bpf/arraymap.c b/kernel/bpf/arraymap.c index dded84cbe814..24583da9ffd1 100644 --- a/kernel/bpf/arraymap.c +++ b/kernel/bpf/arraymap.c | |||
@@ -449,7 +449,7 @@ static void fd_array_map_free(struct bpf_map *map) | |||
449 | 449 | ||
450 | static void *fd_array_map_lookup_elem(struct bpf_map *map, void *key) | 450 | static void *fd_array_map_lookup_elem(struct bpf_map *map, void *key) |
451 | { | 451 | { |
452 | return NULL; | 452 | return ERR_PTR(-EOPNOTSUPP); |
453 | } | 453 | } |
454 | 454 | ||
455 | /* only called from syscall */ | 455 | /* only called from syscall */ |
diff --git a/kernel/bpf/sockmap.c b/kernel/bpf/sockmap.c index d37a1a0a6e1e..5d0677d808ae 100644 --- a/kernel/bpf/sockmap.c +++ b/kernel/bpf/sockmap.c | |||
@@ -2096,7 +2096,7 @@ int sockmap_get_from_fd(const union bpf_attr *attr, int type, | |||
2096 | 2096 | ||
2097 | static void *sock_map_lookup(struct bpf_map *map, void *key) | 2097 | static void *sock_map_lookup(struct bpf_map *map, void *key) |
2098 | { | 2098 | { |
2099 | return NULL; | 2099 | return ERR_PTR(-EOPNOTSUPP); |
2100 | } | 2100 | } |
2101 | 2101 | ||
2102 | static int sock_map_update_elem(struct bpf_map *map, | 2102 | static int sock_map_update_elem(struct bpf_map *map, |
diff --git a/kernel/bpf/stackmap.c b/kernel/bpf/stackmap.c index 8061a439ef18..b2ade10f7ec3 100644 --- a/kernel/bpf/stackmap.c +++ b/kernel/bpf/stackmap.c | |||
@@ -505,7 +505,7 @@ const struct bpf_func_proto bpf_get_stack_proto = { | |||
505 | /* Called from eBPF program */ | 505 | /* Called from eBPF program */ |
506 | static void *stack_map_lookup_elem(struct bpf_map *map, void *key) | 506 | static void *stack_map_lookup_elem(struct bpf_map *map, void *key) |
507 | { | 507 | { |
508 | return NULL; | 508 | return ERR_PTR(-EOPNOTSUPP); |
509 | } | 509 | } |
510 | 510 | ||
511 | /* Called from syscall */ | 511 | /* Called from syscall */ |
diff --git a/kernel/bpf/xskmap.c b/kernel/bpf/xskmap.c index 9f8463afda9c..ef0b7b6ef8a5 100644 --- a/kernel/bpf/xskmap.c +++ b/kernel/bpf/xskmap.c | |||
@@ -154,7 +154,7 @@ void __xsk_map_flush(struct bpf_map *map) | |||
154 | 154 | ||
155 | static void *xsk_map_lookup_elem(struct bpf_map *map, void *key) | 155 | static void *xsk_map_lookup_elem(struct bpf_map *map, void *key) |
156 | { | 156 | { |
157 | return NULL; | 157 | return ERR_PTR(-EOPNOTSUPP); |
158 | } | 158 | } |
159 | 159 | ||
160 | static int xsk_map_update_elem(struct bpf_map *map, void *key, void *value, | 160 | static int xsk_map_update_elem(struct bpf_map *map, void *key, void *value, |