aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/bpf/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/bpf/syscall.c')
-rw-r--r--kernel/bpf/syscall.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c
index 1574b9f0f24e..3217c20ea91b 100644
--- a/kernel/bpf/syscall.c
+++ b/kernel/bpf/syscall.c
@@ -1592,6 +1592,11 @@ static int bpf_prog_get_info_by_fd(struct bpf_prog *prog,
1592 return -EFAULT; 1592 return -EFAULT;
1593 } 1593 }
1594 1594
1595 if (bpf_prog_is_dev_bound(prog->aux)) {
1596 info.status |= BPF_PROG_STATUS_DEV_BOUND;
1597 info.ifindex = bpf_prog_offload_ifindex(prog);
1598 }
1599
1595done: 1600done:
1596 if (copy_to_user(uinfo, &info, info_len) || 1601 if (copy_to_user(uinfo, &info, info_len) ||
1597 put_user(info_len, &uattr->info.info_len)) 1602 put_user(info_len, &uattr->info.info_len))