Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Joe Perches and committed by
David S. Miller
793da4bf f6f7d8cf

+1 -1
+1 -1
net/sched/sch_choke.c
··· 377 377 if (mask != q->tab_mask) { 378 378 struct sk_buff **ntab; 379 379 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); 381 381 if (!ntab) 382 382 return -ENOMEM; 383 383