aboutsummaryrefslogtreecommitdiff
path: root/net/core/gen_estimator.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-04-07 14:52:59 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-04-09 22:25:48 -0700
commit77d04bd957ddca9d48a664e28b40f33993f4550e (patch)
tree8940d3ab7557aed03756e05eec13605e315c887e /net/core/gen_estimator.c
parent31380de95cc3183bbb379339e67f83d69e56fbd6 (diff)
[NET]: More kzalloc conversions.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/gen_estimator.c')
-rw-r--r--net/core/gen_estimator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/gen_estimator.c b/net/core/gen_estimator.c
index b07c029e821..3cad026764f 100644
--- a/net/core/gen_estimator.c
+++ b/net/core/gen_estimator.c
@@ -159,11 +159,10 @@ int gen_new_estimator(struct gnet_stats_basic *bstats,
if (parm->interval < -2 || parm->interval > 3)
return -EINVAL;
- est = kmalloc(sizeof(*est), GFP_KERNEL);
+ est = kzalloc(sizeof(*est), GFP_KERNEL);
if (est == NULL)
return -ENOBUFS;
- memset(est, 0, sizeof(*est));
est->interval = parm->interval + 2;
est->bstats = bstats;
est->rate_est = rate_est;