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>
This commit is contained in:

committed by
David S. Miller

parent
55e26eb95a
commit
89bf3450cb
@@ -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;
|
||||
|
Reference in New Issue
Block a user