From 09fa6a59f7cac63dfa539aceeb416f0843c63817 Mon Sep 17 00:00:00 2001 From: Song Liu Date: Wed, 4 Sep 2024 11:06:54 -0700 Subject: [PATCH] test-klp --- kernel/bpf/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index f45ed6adc092..37a1a75088c9 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c @@ -931,7 +931,7 @@ static int bpf_map_mmap(struct file *filp, struct vm_area_struct *vma) int err; if (!map->ops->map_mmap || !IS_ERR_OR_NULL(map->record)) - return -ENOTSUPP; + return -EINVAL; if (!(vma->vm_flags & VM_SHARED)) return -EINVAL; -- 2.43.5