[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <240ebdbd3f8df2712e542db18d8137f928a1f08d.camel@redhat.com>
Date: Thu, 27 Feb 2020 15:36:19 +0100
From: Paolo Abeni <pabeni@...hat.com>
To: Kirill Tkhai <ktkhai@...tuozzo.com>, netdev@...r.kernel.org
Cc: "David S. Miller" <davem@...emloft.net>,
Willem de Bruijn <willemdebruijn.kernel@...il.com>
Subject: Re: [PATCH net-next 2/2] net: datagram: drop 'destructor' argument
from several helpers
On Thu, 2020-02-27 at 15:31 +0300, Kirill Tkhai wrote:
> diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
> > index 145a3965341e..194e7b93e404 100644
> > --- a/net/unix/af_unix.c
> > +++ b/net/unix/af_unix.c
> > @@ -2102,9 +2102,11 @@ static int unix_dgram_recvmsg(struct socket *sock, struct msghdr *msg,
> >
> > skip = sk_peek_offset(sk, flags);
> > skb = __skb_try_recv_datagram(sk, &sk->sk_receive_queue, flags,
> > - scm_stat_del, &skip, &err, &last);
> > - if (skb)
> > + &skip, &err, &last);
> > + if (skb) {
> > + scm_stat_del(sk, skb);
>
> Shouldn't we care about MSG_PEEK here?
Thank you for checking this! You are right, I'll fix in the next
iteration.
Cheers,
Paolo
Powered by blists - more mailing lists