mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[NET]: More kzalloc conversions.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
31380de95c
commit
77d04bd957
5 changed files with 8 additions and 22 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue