diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-08-07 03:26:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-15 02:30:37 -0400 |
commit | 89bf3450cb9b041b1bb4bcc5e7cbdeab4545b1c1 (patch) | |
tree | 50acdf9b846620fc8c757972da0041f7a1731249 /net/sctp/associola.c | |
parent | 55e26eb95a5345a5796babac98de6d6c42771df1 (diff) |
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 6bcbecafe393..93a4513c85e0 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, | |||
641 | const gfp_t gfp, | 641 | const gfp_t gfp, |
642 | const int peer_state) | 642 | const int peer_state) |
643 | { | 643 | { |
644 | struct net *net = sock_net(asoc->base.sk); | ||
644 | struct sctp_transport *peer; | 645 | struct sctp_transport *peer; |
645 | struct sctp_sock *sp; | 646 | struct sctp_sock *sp; |
646 | unsigned short port; | 647 | unsigned short port; |
@@ -674,7 +675,7 @@ struct sctp_transport *sctp_assoc_add_peer(struct sctp_association *asoc, | |||
674 | return peer; | 675 | return peer; |
675 | } | 676 | } |
676 | 677 | ||
677 | peer = sctp_transport_new(addr, gfp); | 678 | peer = sctp_transport_new(net, addr, gfp); |
678 | if (!peer) | 679 | if (!peer) |
679 | return NULL; | 680 | return NULL; |
680 | 681 | ||