mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 14:23:49 +01:00
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 <[email protected]> Acked-by: Yonghong Song <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
This commit is contained in:
1 parent
8f6e19ab49
commit
a2c11b0341
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user