]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: fix misleading comment in bpf_convert_filter
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 17 Dec 2015 22:51:55 +0000 (23:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Dec 2015 21:04:51 +0000 (16:04 -0500)
commit1ae39ea0136953b9db1cc68e7c9be5863cc0da31
tree2eeb87fc466e0e912f0d1f54e98d708bf1a4c01a
parent283b3f66f6a22fb126e280c1ae27b7b5f5031655
bpf: fix misleading comment in bpf_convert_filter

Comment says "User BPF's register A is mapped to our BPF register 6",
which is actually wrong as the mapping is on register 0. This can
already be inferred from the code itself. So just remove it before
someone makes assumptions based on that. Only code tells truth. ;)

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