[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191125.105022.2027962925589066709.davem@davemloft.net>
Date: Mon, 25 Nov 2019 10:50:22 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: zenczykowski@...il.com
Cc: maze@...gle.com, netdev@...r.kernel.org
Subject: Re: [PATCH] net-sctp: replace some sock_net(sk) with just 'net'
From: Maciej Żenczykowski <zenczykowski@...il.com>
Date: Sun, 24 Nov 2019 02:47:27 -0800
> @@ -8264,6 +8264,7 @@ static struct sctp_bind_bucket *sctp_bucket_create(
>
> static int sctp_get_port_local(struct sock *sk, union sctp_addr *addr)
> {
> + struct net *net = sock_net(sk);
> struct sctp_sock *sp = sctp_sk(sk);
> bool reuse = (sk->sk_reuse || sp->reuse);
> struct sctp_bind_hashbucket *head; /* hash list */
Please don't make the reverse christmas tree situation here worse,
thank you.
Powered by blists - more mailing lists