Thread (3 messages) flat view 3 messages, 3 authors, 2020-09-15

Re: [PATCH bpf-next] xsk: fix refcount warning in xp_dma_map

From: Alexei Starovoitov <hidden>
Date: 2020-09-15 01:46:22
Also in: bpf

On Mon, Sep 14, 2020 at 2:13 PM Song Liu [off-list ref] wrote:
On Mon, Sep 14, 2020 at 7:52 AM Magnus Karlsson
[off-list ref] wrote:
quoted
From: Magnus Karlsson <magnus.karlsson@intel.com>

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>
Acked-by: Song Liu <redacted>
Applied. Thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help