summaryrefslogtreecommitdiffstats
path: root/net/kcm/kcmsock.c
diff options
context:
space:
mode:
authorSami Tolvanen <samitolvanen@google.com>2019-09-05 23:15:28 +0200
committerAlexei Starovoitov <ast@kernel.org>2019-09-06 19:04:31 +0200
commita2c11b034142b9de9ab236aeeb53d6f39c3508aa (patch)
tree230a620e228aa92bdda7b68d1e34fadad5de2d6a /net/kcm/kcmsock.c
parentMerge branch 'move-sockopt-tests' (diff)
downloadlinux-a2c11b034142b9de9ab236aeeb53d6f39c3508aa.tar.xz
linux-a2c11b034142b9de9ab236aeeb53d6f39c3508aa.zip
kcm: use BPF_PROG_RUN
Instead of invoking struct bpf_prog::bpf_func directly, use the BPF_PROG_RUN macro. Signed-off-by: Sami Tolvanen <samitolvanen@google.com> Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/kcm/kcmsock.c')
-rw-r--r--net/kcm/kcmsock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/kcm/kcmsock.c b/net/kcm/kcmsock.c
index 4ff75c3a8d6e..8f12f5c6ab87 100644
--- a/net/kcm/kcmsock.c
+++ b/net/kcm/kcmsock.c
@@ -379,7 +379,7 @@ static int kcm_parse_func_strparser(struct strparser *strp, struct sk_buff *skb)
struct kcm_psock *psock = container_of(strp, struct kcm_psock, strp);
struct bpf_prog *prog = psock->bpf_prog;
- return (*prog->bpf_func)(skb, prog->insnsi);
+ return BPF_PROG_RUN(prog, skb);
}
static int kcm_read_sock_done(struct strparser *strp, int err)