diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2010-04-30 22:41:10 -0400 |
---|---|---|
committer | Vlad Yasevich <vladislav.yasevich@hp.com> | 2010-04-30 22:41:10 -0400 |
commit | b2cf9b6bd93af1cc047d3356f1c6cc9367fe3731 (patch) | |
tree | 2692be4d6237c1a9ebee27bd52bad7c418fa06f9 /net/sctp/associola.c | |
parent | c0058a35aacc79406e867ec33c5cb75624fd5860 (diff) | |
download | linux-3.10-b2cf9b6bd93af1cc047d3356f1c6cc9367fe3731.tar.gz linux-3.10-b2cf9b6bd93af1cc047d3356f1c6cc9367fe3731.tar.bz2 linux-3.10-b2cf9b6bd93af1cc047d3356f1c6cc9367fe3731.zip |
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/associola.c')
-rw-r--r-- | net/sctp/associola.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c index fab9cb2783a..37753cd48be 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c @@ -87,9 +87,6 @@ static struct sctp_association *sctp_association_init(struct sctp_association *a /* Retrieve the SCTP per socket area. */ sp = sctp_sk((struct sock *)sk); - /* Init all variables to a known value. */ - memset(asoc, 0, sizeof(struct sctp_association)); - /* Discarding const is appropriate here. */ asoc->ep = (struct sctp_endpoint *)ep; sctp_endpoint_hold(asoc->ep); |