diff options
author | 2017-07-04 15:57:50 -0700 | |
---|---|---|
committer | 2017-07-05 09:05:28 +0100 | |
commit | f856e46978b8cfaa62cf13738ebab38684b96222 (patch) | |
tree | 5ce7b92a145c33a4d6b38d1261c7d33bc95f7e62 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mpls: fix rtm policy in mpls_getroute (diff) | |
download | wireguard-linux-f856e46978b8cfaa62cf13738ebab38684b96222.tar.xz wireguard-linux-f856e46978b8cfaa62cf13738ebab38684b96222.zip |
bpf: fix return in load_bpf_file
The function load_bpf_file ignores the return value of
load_and_attach(), so even if load_and_attach() returns an error,
load_bpf_file() will return 0.
Now, load_bpf_file() can call load_and_attach() multiple times and some
can succeed and some could fail. I think the correct behavor is to
return error on the first failed load_and_attach().
v2: Added missing SOB
Signed-off-by: Lawrence Brakmo <brakmo@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions