Loading include/net/sctp/structs.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1066,7 +1066,7 @@ struct sctp_transport { __u64 hb_nonce; __u64 hb_nonce; }; }; struct sctp_transport *sctp_transport_new(const union sctp_addr *, struct sctp_transport *sctp_transport_new(struct net *, const union sctp_addr *, gfp_t); gfp_t); void sctp_transport_set_owner(struct sctp_transport *, void sctp_transport_set_owner(struct sctp_transport *, struct sctp_association *); struct sctp_association *); Loading net/sctp/associola.c +2 −1 Original line number Original line Diff line number Diff line Loading @@ -641,6 +641,7 @@ struct sctp_transport *sctp_assoc_add_peer(struct sctp_association *asoc, const gfp_t gfp, const gfp_t gfp, const int peer_state) const int peer_state) { { struct net *net = sock_net(asoc->base.sk); struct sctp_transport *peer; struct sctp_transport *peer; struct sctp_sock *sp; struct sctp_sock *sp; unsigned short port; unsigned short port; Loading Loading @@ -674,7 +675,7 @@ struct sctp_transport *sctp_assoc_add_peer(struct sctp_association *asoc, return peer; return peer; } } peer = sctp_transport_new(addr, gfp); peer = sctp_transport_new(net, addr, gfp); if (!peer) if (!peer) return NULL; return NULL; Loading net/sctp/sm_statefuns.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -5958,7 +5958,7 @@ static struct sctp_packet *sctp_ootb_pkt_new(struct net *net, } } /* Make a transport for the bucket, Eliza... */ /* Make a transport for the bucket, Eliza... */ transport = sctp_transport_new(sctp_source(chunk), GFP_ATOMIC); transport = sctp_transport_new(net, sctp_source(chunk), GFP_ATOMIC); if (!transport) if (!transport) goto nomem; goto nomem; Loading net/sctp/transport.c +5 −3 Original line number Original line Diff line number Diff line Loading @@ -59,7 +59,8 @@ /* 1st Level Abstractions. */ /* 1st Level Abstractions. */ /* Initialize a new transport from provided memory. */ /* 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, const union sctp_addr *addr, gfp_t gfp) gfp_t gfp) { { Loading Loading @@ -109,7 +110,8 @@ static struct sctp_transport *sctp_transport_init(struct sctp_transport *peer, } } /* Allocate and initialize a new transport. */ /* 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) gfp_t gfp) { { struct sctp_transport *transport; struct sctp_transport *transport; Loading @@ -118,7 +120,7 @@ struct sctp_transport *sctp_transport_new(const union sctp_addr *addr, if (!transport) if (!transport) goto fail; goto fail; if (!sctp_transport_init(transport, addr, gfp)) if (!sctp_transport_init(net, transport, addr, gfp)) goto fail_init; goto fail_init; transport->malloced = 1; transport->malloced = 1; Loading Loading
include/net/sctp/structs.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1066,7 +1066,7 @@ struct sctp_transport { __u64 hb_nonce; __u64 hb_nonce; }; }; struct sctp_transport *sctp_transport_new(const union sctp_addr *, struct sctp_transport *sctp_transport_new(struct net *, const union sctp_addr *, gfp_t); gfp_t); void sctp_transport_set_owner(struct sctp_transport *, void sctp_transport_set_owner(struct sctp_transport *, struct sctp_association *); struct sctp_association *); Loading
net/sctp/associola.c +2 −1 Original line number Original line Diff line number Diff line Loading @@ -641,6 +641,7 @@ struct sctp_transport *sctp_assoc_add_peer(struct sctp_association *asoc, const gfp_t gfp, const gfp_t gfp, const int peer_state) const int peer_state) { { struct net *net = sock_net(asoc->base.sk); struct sctp_transport *peer; struct sctp_transport *peer; struct sctp_sock *sp; struct sctp_sock *sp; unsigned short port; unsigned short port; Loading Loading @@ -674,7 +675,7 @@ struct sctp_transport *sctp_assoc_add_peer(struct sctp_association *asoc, return peer; return peer; } } peer = sctp_transport_new(addr, gfp); peer = sctp_transport_new(net, addr, gfp); if (!peer) if (!peer) return NULL; return NULL; Loading
net/sctp/sm_statefuns.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -5958,7 +5958,7 @@ static struct sctp_packet *sctp_ootb_pkt_new(struct net *net, } } /* Make a transport for the bucket, Eliza... */ /* Make a transport for the bucket, Eliza... */ transport = sctp_transport_new(sctp_source(chunk), GFP_ATOMIC); transport = sctp_transport_new(net, sctp_source(chunk), GFP_ATOMIC); if (!transport) if (!transport) goto nomem; goto nomem; Loading
net/sctp/transport.c +5 −3 Original line number Original line Diff line number Diff line Loading @@ -59,7 +59,8 @@ /* 1st Level Abstractions. */ /* 1st Level Abstractions. */ /* Initialize a new transport from provided memory. */ /* 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, const union sctp_addr *addr, gfp_t gfp) gfp_t gfp) { { Loading Loading @@ -109,7 +110,8 @@ static struct sctp_transport *sctp_transport_init(struct sctp_transport *peer, } } /* Allocate and initialize a new transport. */ /* 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) gfp_t gfp) { { struct sctp_transport *transport; struct sctp_transport *transport; Loading @@ -118,7 +120,7 @@ struct sctp_transport *sctp_transport_new(const union sctp_addr *addr, if (!transport) if (!transport) goto fail; goto fail; if (!sctp_transport_init(transport, addr, gfp)) if (!sctp_transport_init(net, transport, addr, gfp)) goto fail_init; goto fail_init; transport->malloced = 1; transport->malloced = 1; Loading