summaryrefslogtreecommitdiffstats
path: root/arch/x86/net/bpf_jit_comp.c
diff options
context:
space:
mode:
authorYafang Shao2018-02-23 07:58:41 +0100
committerDaniel Borkmann2018-02-23 16:23:11 +0100
commitee07862f7b4594d390b978f6636a6a6191632ab3 (patch)
treef72ef4109f87aad9951bf5d3641db327374ea071 /arch/x86/net/bpf_jit_comp.c
parentMerge branch 'bpf-misc-selftest-improvements' (diff)
downloadkernel-qcow2-linux-ee07862f7b4594d390b978f6636a6a6191632ab3.tar.gz
kernel-qcow2-linux-ee07862f7b4594d390b978f6636a6a6191632ab3.tar.xz
kernel-qcow2-linux-ee07862f7b4594d390b978f6636a6a6191632ab3.zip
bpf: NULL pointer check is not needed in BPF_CGROUP_RUN_PROG_INET_SOCK
sk is already allocated in inet_create/inet6_create, hence when BPF_CGROUP_RUN_PROG_INET_SOCK is executed sk will never be NULL. The logic is as bellow, sk = sk_alloc(); if (!sk) goto out; BPF_CGROUP_RUN_PROG_INET_SOCK(sk); Signed-off-by: Yafang Shao <laoar.shao@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'arch/x86/net/bpf_jit_comp.c')
0 files changed, 0 insertions, 0 deletions