git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
net
/
core
/
gen_estimator.c
diff --git
a/net/core/gen_estimator.c
b/net/core/gen_estimator.c
index
b07c029
..
3cad026
100644
(file)
--- 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;
if (parm->interval < -2 || parm->interval > 3)
return -EINVAL;
- est = k
m
alloc(sizeof(*est), GFP_KERNEL);
+ est = k
z
alloc(sizeof(*est), GFP_KERNEL);
if (est == NULL)
return -ENOBUFS;
if (est == NULL)
return -ENOBUFS;
- memset(est, 0, sizeof(*est));
est->interval = parm->interval + 2;
est->bstats = bstats;
est->rate_est = rate_est;
est->interval = parm->interval + 2;
est->bstats = bstats;
est->rate_est = rate_est;