summaryrefslogtreecommitdiffstats
path: root/include/keys
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-06-24 15:33:22 +0200
committerDavid S. Miller <davem@davemloft.net>2014-06-26 01:40:02 +0200
commit99e72a0fed07d118d329f3046ad2ec2ae9357d63 (patch)
tree1517dd11ff7021cb4d06dcd335edd2d8009294d0 /include/keys
parenttrivial: net: filter: Change kerneldoc parameter order (diff)
downloadlinux-99e72a0fed07d118d329f3046ad2ec2ae9357d63.tar.xz
linux-99e72a0fed07d118d329f3046ad2ec2ae9357d63.zip
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 <tklauser@distanz.ch> Acked-by: Daniel Borkmann <dborkman@redhat.com> Acked-by: Alexei Starovoitov <ast@plumgrid.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/keys')
0 files changed, 0 insertions, 0 deletions