diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-08-07 09:26:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-15 08:30:37 +0200 |
commit | 89bf3450cb9b041b1bb4bcc5e7cbdeab4545b1c1 (patch) | |
tree | 50acdf9b846620fc8c757972da0041f7a1731249 /net/sctp/transport.c | |
parent | sctp: Push struct net down to sctp_chunk_event_lookup (diff) | |
download | linux-89bf3450cb9b041b1bb4bcc5e7cbdeab4545b1c1.tar.xz linux-89bf3450cb9b041b1bb4bcc5e7cbdeab4545b1c1.zip |
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/transport.c')
-rw-r--r-- | net/sctp/transport.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/sctp/transport.c b/net/sctp/transport.c index c97472b248a2..aada963c9d6b 100644 --- a/net/sctp/transport.c +++ b/net/sctp/transport.c @@ -59,7 +59,8 @@ /* 1st Level Abstractions. */ /* Initialize a new transport from provided memory. */ -static struct sctp_transport *sctp_transport_init(struct sctp_transport *peer, +static struct sctp_transport *sctp_transport_init(struct net *net, + struct sctp_transport *peer, const union sctp_addr *addr, gfp_t gfp) { @@ -109,7 +110,8 @@ static struct sctp_transport *sctp_transport_init(struct sctp_transport *peer, } /* Allocate and initialize a new transport. */ -struct sctp_transport *sctp_transport_new(const union sctp_addr *addr, +struct sctp_transport *sctp_transport_new(struct net *net, + const union sctp_addr *addr, gfp_t gfp) { struct sctp_transport *transport; @@ -118,7 +120,7 @@ struct sctp_transport *sctp_transport_new(const union sctp_addr *addr, if (!transport) goto fail; - if (!sctp_transport_init(transport, addr, gfp)) + if (!sctp_transport_init(net, transport, addr, gfp)) goto fail_init; transport->malloced = 1; |