From: Joe Perches Date: Tue, 28 Jan 2020 19:12:03 +0000 (-0800) Subject: sch_choke: Use kvcalloc X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=793da4bfba7b8a785d38662f57fbcb2252b6f904;p=linux.git sch_choke: Use kvcalloc Convert the use of kvmalloc_array with __GFP_ZERO to the equivalent kvcalloc. Signed-off-by: Joe Perches Signed-off-by: David S. Miller --- diff --git a/net/sched/sch_choke.c b/net/sched/sch_choke.c index dba70377bbd97..a36974e9c601e 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;