[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPhsuW4ktphxDkbZbvuQZUd09vBdNJbn2EfB5mDQ9-6FoXoFKQ@mail.gmail.com>
Date: Mon, 14 Sep 2020 14:13:20 -0700
From: Song Liu <song@...nel.org>
To: Magnus Karlsson <magnus.karlsson@...il.com>
Cc: Magnus Karlsson <magnus.karlsson@...el.com>,
Björn Töpel <bjorn.topel@...el.com>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Networking <netdev@...r.kernel.org>,
Jonathan Lemon <jonathan.lemon@...il.com>,
bpf <bpf@...r.kernel.org>
Subject: Re: [PATCH bpf-next] xsk: fix refcount warning in xp_dma_map
On Mon, Sep 14, 2020 at 7:52 AM Magnus Karlsson
<magnus.karlsson@...il.com> wrote:
>
> From: Magnus Karlsson <magnus.karlsson@...el.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@...el.com>
Acked-by: Song Liu <songliubraving@...com>
Powered by blists - more mailing lists