diff options
Diffstat (limited to 'net/sctp/endpointola.c')
-rw-r--r-- | net/sctp/endpointola.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c index 5fbd7bc6bb11..a8b26741c0af 100644 --- a/net/sctp/endpointola.c +++ b/net/sctp/endpointola.c | |||
@@ -192,9 +192,10 @@ struct sctp_endpoint *sctp_endpoint_new(struct sock *sk, gfp_t gfp) | |||
192 | struct sctp_endpoint *ep; | 192 | struct sctp_endpoint *ep; |
193 | 193 | ||
194 | /* Build a local endpoint. */ | 194 | /* Build a local endpoint. */ |
195 | ep = t_new(struct sctp_endpoint, gfp); | 195 | ep = kzalloc(sizeof(*ep), gfp); |
196 | if (!ep) | 196 | if (!ep) |
197 | goto fail; | 197 | goto fail; |
198 | |||
198 | if (!sctp_endpoint_init(ep, sk, gfp)) | 199 | if (!sctp_endpoint_init(ep, sk, gfp)) |
199 | goto fail_init; | 200 | goto fail_init; |
200 | 201 | ||