diff options
author | Maciej Fijalkowski <maciejromanfijalkowski@gmail.com> | 2019-02-01 22:42:30 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-02-01 23:37:51 +0100 |
commit | 3b7a8ec2dec3e408288dbc80b8aef25df20ba119 (patch) | |
tree | 234d9207292e271029c3615016f5625e05d3b5d0 /sound/ac97_bus.c | |
parent | 50db9f0731889b9f3839cab5f44163733eb44f04 (diff) | |
download | linux-3b7a8ec2dec3e408288dbc80b8aef25df20ba119.tar.gz linux-3b7a8ec2dec3e408288dbc80b8aef25df20ba119.tar.bz2 linux-3b7a8ec2dec3e408288dbc80b8aef25df20ba119.zip |
samples/bpf: Check the prog id before exiting
Check the program id within the signal handler on polling xdp samples
that were previously converted to libbpf usage. Avoid the situation of
unloading the program that was not attached by sample that is exiting.
Handle also the case where bpf_get_link_xdp_id didn't exit with an error
but the xdp program was not found on an interface.
Reported-by: Michal Papaj <michal.papaj@intel.com>
Reported-by: Jakub Spizewski <jakub.spizewski@intel.com>
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'sound/ac97_bus.c')
0 files changed, 0 insertions, 0 deletions