diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-08-07 07:26:14 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-15 06:30:37 (GMT) |
commit | 89bf3450cb9b041b1bb4bcc5e7cbdeab4545b1c1 (patch) | |
tree | 50acdf9b846620fc8c757972da0041f7a1731249 /net/sctp/associola.c | |
parent | 55e26eb95a5345a5796babac98de6d6c42771df1 (diff) | |
download | linux-89bf3450cb9b041b1bb4bcc5e7cbdeab4545b1c1.tar.xz |
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.c | 3 |
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; |