diff options
-rw-r--r-- | kernel/bpf/cgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/bpf/cgroup.c b/kernel/bpf/cgroup.c index 72c8b50dca0a..2e1c0eab20c0 100644 --- a/kernel/bpf/cgroup.c +++ b/kernel/bpf/cgroup.c @@ -707,11 +707,11 @@ static struct bpf_prog_list *get_prog_list(struct hlist_head *progs, struct bpf_ if (is_link) { anchor_link = bpf_get_anchor_link(flags, id_or_fd); if (IS_ERR(anchor_link)) - return ERR_PTR(PTR_ERR(anchor_link)); + return ERR_CAST(anchor_link); } else if (is_id || id_or_fd) { anchor_prog = bpf_get_anchor_prog(flags, id_or_fd); if (IS_ERR(anchor_prog)) - return ERR_PTR(PTR_ERR(anchor_prog)); + return ERR_CAST(anchor_prog); } if (!anchor_prog && !anchor_link) { |