bpf: Move check_uarg_tail_zero() upward
authorMickaël Salaün <mic@digikod.net>
Mon, 7 Aug 2017 18:45:19 +0000 (20:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Aug 2017 01:11:17 +0000 (18:11 -0700)
commit58291a7465f6b88248c9f34807c16705bd5698f8
tree2dc746ed8009ea1033d853839ca2d51649f84adb
parent7b83f52047e8a3d551a9495b0267df5d0754c5bf
bpf: Move check_uarg_tail_zero() upward

The function check_uarg_tail_zero() may be useful for other part of the
code in the syscall.c file. Move this function at the beginning of the
file.

Signed-off-by: Mickaël Salaün <mic@digikod.net>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: Kees Cook <keescook@chromium.org>
Cc: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/syscall.c