aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/json_writer.c
diff options
context:
space:
mode:
authorMagnus Karlsson <[email protected]>2020-09-14 14:50:36 +0000
committerAlexei Starovoitov <[email protected]>2020-09-15 01:43:25 +0000
commitbf74a370eb4086d3aee77c73e95303ee24779ee8 (patch)
treecad8b65505336171813194230447270387996cd4 /tools/bpf/bpftool/json_writer.c
parentsamples/bpf: Add quiet option to xdpsock (diff)
downloadkernel-bf74a370eb4086d3aee77c73e95303ee24779ee8.tar.gz
kernel-bf74a370eb4086d3aee77c73e95303ee24779ee8.zip
xsk: Fix refcount warning in xp_dma_map
Fix a potential refcount warning that a zero value is increased to one in xp_dma_map, by initializing the refcount to one to start with, instead of zero plus a refcount_inc(). Fixes: 921b68692abb ("xsk: Enable sharing of dma mappings") Signed-off-by: Magnus Karlsson <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Song Liu <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/json_writer.c')
0 files changed, 0 insertions, 0 deletions