diff options
author | Alexei Starovoitov <ast@plumgrid.com> | 2014-07-30 20:34:15 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-02 15:02:38 -0700 |
commit | 8fb575ca396bc31d9fa99c26336e2432b41d1bfc (patch) | |
tree | c2d8bc40cd5313e1e7aa710c9f73d7a56edd9b8c /kernel/seccomp.c | |
parent | 4df95ff488eb796aab9566652c250330179def17 (diff) | |
download | op-kernel-dev-8fb575ca396bc31d9fa99c26336e2432b41d1bfc.zip op-kernel-dev-8fb575ca396bc31d9fa99c26336e2432b41d1bfc.tar.gz |
net: filter: rename sk_convert_filter() -> bpf_convert_filter()
to indicate that this function is converting classic BPF into eBPF
and not related to sockets
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/seccomp.c')
-rw-r--r-- | kernel/seccomp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/seccomp.c b/kernel/seccomp.c index f4a77d2..33a3a97 100644 --- a/kernel/seccomp.c +++ b/kernel/seccomp.c @@ -249,7 +249,7 @@ static long seccomp_attach_filter(struct sock_fprog *fprog) goto free_prog; /* Convert 'sock_filter' insns to 'bpf_insn' insns */ - ret = sk_convert_filter(fp, fprog->len, NULL, &new_len); + ret = bpf_convert_filter(fp, fprog->len, NULL, &new_len); if (ret) goto free_prog; @@ -265,7 +265,7 @@ static long seccomp_attach_filter(struct sock_fprog *fprog) if (!filter->prog) goto free_filter; - ret = sk_convert_filter(fp, fprog->len, filter->prog->insnsi, &new_len); + ret = bpf_convert_filter(fp, fprog->len, filter->prog->insnsi, &new_len); if (ret) goto free_filter_prog; kfree(fp); |