bpf: sockmap remove dead check
authorJann Horn <jannh@google.com>
Fri, 20 Apr 2018 16:16:30 +0000 (18:16 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 20 Apr 2018 20:09:51 +0000 (22:09 +0200)
commit6ab690aa439803347743c0d899ac422774fdd5e7
tree00b5f22bc75eef2a0fdc135578490f9d70c2acfb
parent0a0a7e00a250c117f0c7ad8e1184abd98e7c098a
bpf: sockmap remove dead check

Remove dead code that bails on `attr->value_size > KMALLOC_MAX_SIZE` - the
previous check already bails on `attr->value_size != 4`.

Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/sockmap.c