[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHmME9pUWenvkMCNkAHa6K71UDdETvriMr52sKPL38q19M3RVw@mail.gmail.com>
Date: Wed, 27 Sep 2017 14:50:55 +0200
From: "Jason A. Donenfeld" <Jason@...c4.com>
To: David Miller <davem@...emloft.net>, johannes.berg@...el.com,
Netdev <netdev@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Cc: "Jason A. Donenfeld" <Jason@...c4.com>, stable@...r.kernel.org
Subject: Re: [PATCH] netlink: do not proceed if dump's start() errs
On Wed, Sep 27, 2017 at 2:39 PM, Jason A. Donenfeld <Jason@...c4.com> wrote:
> - if (cb->start)
> - cb->start(cb);
> + if (cb->start) {
> + ret = cb->start(cb);
> + if (ret)
I need to sock_put(sk); before returning. I'll fix this for v2, but
will for additional comments in case anybody has some.
> + return ret;
> + }
>
> ret = netlink_dump(sk);
> sock_put(sk);
Powered by blists - more mailing lists