projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: sctp: get rid of t_new macro for kzalloc
[deliverable/linux.git]
/
net
/
sctp
/
endpointola.c
diff --git
a/net/sctp/endpointola.c
b/net/sctp/endpointola.c
index 5fbd7bc6bb11077f8af91bf01ea8403c5087c31e..a8b26741c0af868e6aab9277f01d311f54635c6b 100644
(file)
--- 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. */
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 (!ep)
goto fail;
+
if (!sctp_endpoint_init(ep, sk, gfp))
goto fail_init;
if (!sctp_endpoint_init(ep, sk, gfp))
goto fail_init;
This page took
0.031009 seconds
and
5
git commands to generate.