diff options
author | 2015-07-29 21:15:17 +0200 | |
---|---|---|
committer | 2015-07-29 14:59:58 -0700 | |
commit | cde66c2d88da1d73d755109c80ce4c34b917596b (patch) | |
tree | 888437f97f8dd86ce7dc02a2a607c97e46b4fdbc /net/ipv6/tcp_ipv6.c | |
parent | s390/bpf: increase BPF_SIZE_MAX (diff) | |
download | wireguard-linux-cde66c2d88da1d73d755109c80ce4c34b917596b.tar.xz wireguard-linux-cde66c2d88da1d73d755109c80ce4c34b917596b.zip |
s390/bpf: Only clear A and X for converted BPF programs
Only classic BPF programs that have been converted to eBPF need to clear
the A and X registers. We can check for converted programs with:
bpf_prog->type == BPF_PROG_TYPE_UNSPEC
So add the check and skip initialization for real eBPF programs.
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions