bpf: Collapse offset checks in sock_filter_is_valid_access
authorDavid Ahern <[email protected]>
Fri, 1 Sep 2017 15:18:07 +0000 (08:18 -0700)
committerDavid S. Miller <[email protected]>
Fri, 1 Sep 2017 17:37:14 +0000 (10:37 -0700)
commit9df59055ed8e2f817149e786b2a52bc17832d84e
treec70aa33ec7c7f4c84e0d64f15a3a8745f49e6dde
parentc54a5048904b6a492551d1cf0a7c9ae3ca763f4b
bpf: Collapse offset checks in sock_filter_is_valid_access

Make sock_filter_is_valid_access consistent with other is_valid_access
helpers.

Requested-by: Daniel Borkmann <[email protected]>
Signed-off-by: David Ahern <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/core/filter.c