]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: net: bpf: avoid reloading 'index'
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 11 Jul 2018 09:32:22 +0000 (10:32 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 12 Jul 2018 18:45:23 +0000 (20:45 +0200)
commit6fadc772b01e4e80dacd683b3f1a74f94d341bcf
treea4607bc0ea818a20af3453d6b8aba221dc686efd
parent6fee8d7911f3023e18339e39f4004159764df29d
ARM: net: bpf: avoid reloading 'index'

Avoid reloading 'index' after we have validated it - it remains in
tmp2[1] up to the point that we begin the code to index the pointer
array, so with a little rearrangement of the registers, we can use
the already loaded value.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
arch/arm/net/bpf_jit_32.c