Re: [PATCH net-next v1] netfilter: Use kmemdup_array instead of kmemdup for multiple allocation
From: Florian Westphal
Date: Mon Aug 26 2024 - 03:07:32 EST
Yan Zhen <yanzhen@xxxxxxxx> wrote:
> When we are allocating an array, using kmemdup_array() to take care about
> multiplication and possible overflows.
>
> Also it makes auditing the code easier.
Reviewed-by: Florian Westphal <fw@xxxxxxxxx>