summaryrefslogtreecommitdiffstats
path: root/net/sctp/associola.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-08-07 07:26:14 +0000
committerDavid S. Miller <davem@davemloft.net>2012-08-14 23:30:37 -0700
commit89bf3450cb9b041b1bb4bcc5e7cbdeab4545b1c1 (patch)
tree50acdf9b846620fc8c757972da0041f7a1731249 /net/sctp/associola.c
parent55e26eb95a5345a5796babac98de6d6c42771df1 (diff)
downloadop-kernel-dev-89bf3450cb9b041b1bb4bcc5e7cbdeab4545b1c1.zip
op-kernel-dev-89bf3450cb9b041b1bb4bcc5e7cbdeab4545b1c1.tar.gz
sctp: Push struct net down into sctp_transport_init
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/associola.c')
-rw-r--r--net/sctp/associola.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index 6bcbeca..93a4513 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -641,6 +641,7 @@ struct sctp_transport *sctp_assoc_add_peer(struct sctp_association *asoc,
const gfp_t gfp,
const int peer_state)
{
+ struct net *net = sock_net(asoc->base.sk);
struct sctp_transport *peer;
struct sctp_sock *sp;
unsigned short port;
@@ -674,7 +675,7 @@ struct sctp_transport *sctp_assoc_add_peer(struct sctp_association *asoc,
return peer;
}
- peer = sctp_transport_new(addr, gfp);
+ peer = sctp_transport_new(net, addr, gfp);
if (!peer)
return NULL;
OpenPOWER on IntegriCloud