bpf: refactor fixup_bpf_calls()
authorAlexei Starovoitov <ast@fb.com>
Thu, 16 Mar 2017 01:26:40 +0000 (18:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Mar 2017 03:44:11 +0000 (20:44 -0700)
commit79741b3bdec01a8628368fbcfccc7d189ed606cb
tree8c8e866e58087e26eab10b1086282a73dfcdcf86
parente245c5c6a5656e4d61aa7bb08e9694fd6e5b2b9d
bpf: refactor fixup_bpf_calls()

reduce indent and make it iterate over instructions similar to
convert_ctx_accesses(). Also convert hard BUG_ON into soft verifier error.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/verifier.c