diff options
author | Andrew Morton <akpm@osdl.org> | 2006-04-07 14:52:59 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-04-09 22:25:48 -0700 |
commit | 77d04bd957ddca9d48a664e28b40f33993f4550e (patch) | |
tree | 8940d3ab7557aed03756e05eec13605e315c887e /net/core/request_sock.c | |
parent | 31380de95cc3183bbb379339e67f83d69e56fbd6 (diff) | |
download | linux-77d04bd957ddca9d48a664e28b40f33993f4550e.tar.gz linux-77d04bd957ddca9d48a664e28b40f33993f4550e.tar.bz2 linux-77d04bd957ddca9d48a664e28b40f33993f4550e.zip |
[NET]: More kzalloc conversions.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/request_sock.c')
-rw-r--r-- | net/core/request_sock.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/core/request_sock.c b/net/core/request_sock.c index 1e44eda1fda9..79ebd75fbe4d 100644 --- a/net/core/request_sock.c +++ b/net/core/request_sock.c @@ -38,13 +38,11 @@ int reqsk_queue_alloc(struct request_sock_queue *queue, { const int lopt_size = sizeof(struct listen_sock) + nr_table_entries * sizeof(struct request_sock *); - struct listen_sock *lopt = kmalloc(lopt_size, GFP_KERNEL); + struct listen_sock *lopt = kzalloc(lopt_size, GFP_KERNEL); if (lopt == NULL) return -ENOMEM; - memset(lopt, 0, lopt_size); - for (lopt->max_qlen_log = 6; (1 << lopt->max_qlen_log) < sysctl_max_syn_backlog; lopt->max_qlen_log++); |