]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: fix bpf_setsockopts return value
authorYuchung Cheng <ycheng@google.com>
Thu, 24 Aug 2017 22:48:21 +0000 (15:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Aug 2017 01:23:20 +0000 (18:23 -0700)
commitffbcc3acb349ec0d6e814de425b3c0638cbc9f58
tree4cac610ba1034740a055057d09f1b11197a22b71
parentb13d1e51c028a1bb3bf3c65b1747dfed67097c55
bpf: fix bpf_setsockopts return value

This patch fixes a bug causing any sock operations to always return EINVAL.

Fixes: 25b1767fae86 ("bpf: fix to bpf_setsockops").
Reported-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Craig Gallek <kraig@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Lawrence Brakmo <brakmo@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c