diff options
| author | Andrew Morton <[email protected]> | 2006-04-07 21:52:59 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2006-04-10 05:25:48 +0000 |
| commit | 77d04bd957ddca9d48a664e28b40f33993f4550e (patch) | |
| tree | 8940d3ab7557aed03756e05eec13605e315c887e /net/core/gen_estimator.c | |
| parent | [NET] kzalloc: use in alloc_netdev (diff) | |
| download | kernel-77d04bd957ddca9d48a664e28b40f33993f4550e.tar.gz kernel-77d04bd957ddca9d48a664e28b40f33993f4550e.zip | |
[NET]: More kzalloc conversions.
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/core/gen_estimator.c')
| -rw-r--r-- | net/core/gen_estimator.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/gen_estimator.c b/net/core/gen_estimator.c index b07c029e8219..3cad026764f0 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; |
