OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6f7d8c
)
sch_choke: Use kvcalloc
author
Joe Perches
<joe@perches.com>
Tue, 28 Jan 2020 19:12:03 +0000
(11:12 -0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 29 Jan 2020 10:58:10 +0000
(11:58 +0100)
Convert the use of kvmalloc_array with __GFP_ZERO to
the equivalent kvcalloc.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_choke.c
patch
|
blob
|
history
diff --git
a/net/sched/sch_choke.c
b/net/sched/sch_choke.c
index
dba7037
..
a36974e
100644
(file)
--- a/
net/sched/sch_choke.c
+++ b/
net/sched/sch_choke.c
@@
-377,7
+377,7
@@
static int choke_change(struct Qdisc *sch, struct nlattr *opt,
if (mask != q->tab_mask) {
struct sk_buff **ntab;
- ntab = kv
malloc_array((mask + 1), sizeof(struct sk_buff *), GFP_KERNEL | __GFP_ZERO
);
+ ntab = kv
calloc(mask + 1, sizeof(struct sk_buff *), GFP_KERNEL
);
if (!ntab)
return -ENOMEM;