summaryrefslogtreecommitdiffstats
path: root/net/sctp/endpointola.c
diff options
context:
space:
mode:
authorVlad Yasevich <vladislav.yasevich@hp.com>2010-04-30 22:41:10 -0400
committerVlad Yasevich <vladislav.yasevich@hp.com>2010-04-30 22:41:10 -0400
commitb2cf9b6bd93af1cc047d3356f1c6cc9367fe3731 (patch)
tree2692be4d6237c1a9ebee27bd52bad7c418fa06f9 /net/sctp/endpointola.c
parentc0058a35aacc79406e867ec33c5cb75624fd5860 (diff)
downloadop-kernel-dev-b2cf9b6bd93af1cc047d3356f1c6cc9367fe3731.zip
op-kernel-dev-b2cf9b6bd93af1cc047d3356f1c6cc9367fe3731.tar.gz
sctp: update transport initializations
Right now, sctp transports are not fully initialized and when adding any new fields, they have to be explicitely initialized. This is prone to mistakes. So we switch to calling kzalloc() which makes things much simpler. Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Diffstat (limited to 'net/sctp/endpointola.c')
-rw-r--r--net/sctp/endpointola.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c
index 905fda5..2f8763b 100644
--- a/net/sctp/endpointola.c
+++ b/net/sctp/endpointola.c
@@ -70,8 +70,6 @@ static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep,
struct sctp_shared_key *null_key;
int err;
- memset(ep, 0, sizeof(struct sctp_endpoint));
-
ep->digest = kzalloc(SCTP_SIGNATURE_SIZE, gfp);
if (!ep->digest)
return NULL;
OpenPOWER on IntegriCloud