diff options
author | David Ahern <[email protected]> | 2020-04-12 07:32:04 -0600 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-04-14 21:38:02 +0200 |
commit | dfa74909cb6b846cbdabfc2c3c7de1d507fca075 (patch) | |
tree | abcec0eda77f457704330ae51338d22e98d656c9 /scripts/bpf_helpers_doc.py | |
parent | 96b2eb6e77959b4b52f80e7a61d03db77606aac6 (diff) |
xdp: Reset prog in dev_change_xdp_fd when fd is negative
The commit mentioned in the Fixes tag reuses the local prog variable
when looking up an expected_fd. The variable is not reset when fd < 0
causing a detach with the expected_fd set to actually call
dev_xdp_install for the existing program. The end result is that the
detach does not happen.
Fixes: 92234c8f15c8 ("xdp: Support specifying expected existing program when attaching XDP")
Signed-off-by: David Ahern <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Reviewed-by: Toke Høiland-Jørgensen <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions