From: Tobias Klauser Date: Tue, 24 Jun 2014 13:33:22 +0000 (+0200) Subject: net: filter: Use kcalloc/kmalloc_array to allocate arrays X-Git-Tag: omap-for-v3.16/fixes-rc4~53^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99e72a0fed07d118d329f3046ad2ec2ae9357d63;p=pandora-kernel.git net: filter: Use kcalloc/kmalloc_array to allocate arrays Use kcalloc/kmalloc_array to make it clear we're allocating arrays. No integer overflow can actually happen here, since len/flen is guaranteed to be less than BPF_MAXINSNS (4096). However, this changed makes sure we're not going to get one if BPF_MAXINSNS were ever increased. Signed-off-by: Tobias Klauser Acked-by: Daniel Borkmann Acked-by: Alexei Starovoitov Signed-off-by: David S. Miller --- Reading git-diff-tree failed