summaryrefslogtreecommitdiff
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2020-12-18 10:15:12 +0300
committerTony Lindgren <tony@atomide.com>2020-12-18 10:15:12 +0300
commit500050f0d28868af302a3c24d7d1d0191521286e (patch)
tree7c4366836fcf5c7d7be4292f60d76876b3c463a0 /tools/bpf/bpftool/prog.c
parentc0bc969c176b10598b31d5d1a5edf9a5261f0a9f (diff)
parent6efac0173cd15460b48c91e1b0a000379f341f00 (diff)
downloadlinux-500050f0d28868af302a3c24d7d1d0191521286e.tar.xz
Merge branch 'fixes-omap3' into fixes
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
-rw-r--r--tools/bpf/bpftool/prog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bpf/bpftool/prog.c b/tools/bpf/bpftool/prog.c
index d942c1e3372c..acdb2c245f0a 100644
--- a/tools/bpf/bpftool/prog.c
+++ b/tools/bpf/bpftool/prog.c
@@ -940,7 +940,7 @@ static int parse_attach_detach_args(int argc, char **argv, int *progfd,
}
if (*attach_type == BPF_FLOW_DISSECTOR) {
- *mapfd = -1;
+ *mapfd = 0;
return 0;
}