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

2020-09-14 Thread Alexei Starovoitov
On Mon, Sep 14, 2020 at 2:13 PM Song Liu wrote: > > On Mon, Sep 14, 2020 at 7:52 AM Magnus Karlsson > wrote: > > > > From: Magnus Karlsson > > > > 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, > > inst

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

2020-09-14 Thread Song Liu
On Mon, Sep 14, 2020 at 7:52 AM Magnus Karlsson wrote: > > From: Magnus Karlsson > > 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: E

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

2020-09-14 Thread Magnus Karlsson
From: Magnus Karlsson 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 --- n