Skip to content

Commit 793da4b

Browse files
JoePerchesdavem330
authored andcommitted
sch_choke: Use kvcalloc
Convert the use of kvmalloc_array with __GFP_ZERO to the equivalent kvcalloc. Signed-off-by: Joe Perches <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f6f7d8c commit 793da4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sched/sch_choke.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ static int choke_change(struct Qdisc *sch, struct nlattr *opt,
377377
if (mask != q->tab_mask) {
378378
struct sk_buff **ntab;
379379

380-
ntab = kvmalloc_array((mask + 1), sizeof(struct sk_buff *), GFP_KERNEL | __GFP_ZERO);
380+
ntab = kvcalloc(mask + 1, sizeof(struct sk_buff *), GFP_KERNEL);
381381
if (!ntab)
382382
return -ENOMEM;
383383

0 commit comments

Comments
 (0)