]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9e95678132dbf4048bd863f46375b7f8171ff9e0
tree00b5f22bc75eef2a0fdc135578490f9d70c2acfb
parent88cdb9431331f7a842cb564a983b89d2e8fb43f0
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