diff options
author | Magnus Karlsson <magnus.karlsson@intel.com> | 2020-09-14 16:50:36 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-09-15 03:43:25 +0200 |
commit | bf74a370eb4086d3aee77c73e95303ee24779ee8 (patch) | |
tree | cad8b65505336171813194230447270387996cd4 /fs | |
parent | samples/bpf: Add quiet option to xdpsock (diff) | |
download | linux-bf74a370eb4086d3aee77c73e95303ee24779ee8.tar.xz linux-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 <magnus.karlsson@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/1600095036-23868-1-git-send-email-magnus.karlsson@gmail.com
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions