Commit 20eb5e7c authored by Yan Zhen's avatar Yan Zhen Committed by Pablo Neira Ayuso
Browse files

netfilter: Use kmemdup_array instead of kmemdup for multiple allocation



When we are allocating an array, using kmemdup_array() to take care about
multiplication and possible overflows.

Also it makes auditing the code easier.

Signed-off-by: default avatarYan Zhen <yanzhen@vivo.com>
Reviewed-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 4a1d3acd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment