]> Git Repo - linux.git/commit
bpf: netdev is never null in __dev_map_flush
authorDaniel Borkmann <[email protected]>
Thu, 24 Aug 2017 01:20:11 +0000 (03:20 +0200)
committerDavid S. Miller <[email protected]>
Thu, 24 Aug 2017 05:43:40 +0000 (22:43 -0700)
commita5e2da6e9787187ff104c34aa048419703c1f9cb
tree57c9516ecbf16f502b3128e4c131cb3f2b425c46
parentd2aaa3dc419994eefa21de971bb1f544c42541c7
bpf: netdev is never null in __dev_map_flush

No need to test for it in fast-path, every dev in bpf_dtab_netdev
is guaranteed to be non-NULL, otherwise dev_map_update_elem() will
fail in the first place.

Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Acked-by: John Fastabend <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
kernel/bpf/devmap.c
This page took 0.052589 seconds and 4 git commands to generate.