X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=net%2Fsctp%2Fendpointola.c;h=a8b26741c0af868e6aab9277f01d311f54635c6b;hb=939cfa75a0cea97aa60cb88e3722baefdceb4e72;hp=5fbd7bc6bb11077f8af91bf01ea8403c5087c31e;hpb=0ddaa974258a4cde9a06c079bfd7863644e10d31;p=deliverable%2Flinux.git 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) struct sctp_endpoint *ep; /* Build a local endpoint. */ - ep = t_new(struct sctp_endpoint, gfp); + ep = kzalloc(sizeof(*ep), gfp); if (!ep) goto fail; + if (!sctp_endpoint_init(ep, sk, gfp)) goto fail_init;