summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_choke.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2020-01-28 20:12:03 +0100
committerDavid S. Miller <davem@davemloft.net>2020-01-29 11:58:10 +0100
commit793da4bfba7b8a785d38662f57fbcb2252b6f904 (patch)
treee4f30d0702c625469ba3d5d19db5754638011351 /net/sched/sch_choke.c
parentmptcp: Fix build with PROC_FS disabled. (diff)
downloadlinux-793da4bfba7b8a785d38662f57fbcb2252b6f904.tar.xz
linux-793da4bfba7b8a785d38662f57fbcb2252b6f904.zip
sch_choke: Use kvcalloc
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>
Diffstat (limited to 'net/sched/sch_choke.c')
-rw-r--r--net/sched/sch_choke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_choke.c b/net/sched/sch_choke.c
index dba70377bbd9..a36974e9c601 100644
--- 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 = kvmalloc_array((mask + 1), sizeof(struct sk_buff *), GFP_KERNEL | __GFP_ZERO);
+ ntab = kvcalloc(mask + 1, sizeof(struct sk_buff *), GFP_KERNEL);
if (!ntab)
return -ENOMEM;