]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: no need to nullify ri->map in xdp_do_redirect
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 17 Aug 2017 13:07:22 +0000 (15:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Aug 2017 17:15:53 +0000 (10:15 -0700)
commit6d5e70a1467c9cdc3c8ca133bc08dd59d76c899e
tree088c702904e1f91995b3ce041527561f2941d81c
parent73c937dcdb7634b9942806c719112855186fb1a1
bpf: no need to nullify ri->map in xdp_do_redirect

We are guaranteed to have a NULL ri->map in this branch since
we test for it earlier, so we don't need to reset it here.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c