diff options
| author | Yan Zhen <yanzhen@vivo.com> | 2024-08-26 11:41:36 +0800 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-09-03 10:47:16 +0200 |
| commit | 20eb5e7cb78c331107fbdf2f77a30fbea9338638 (patch) | |
| tree | c9c5e91d7af09fa0663cce4b85595b93f64c7d4d /net/netfilter/nft_queue.c | |
| parent | netfilter: nft_counter: Use u64_stats_t for statistic. (diff) | |
| download | linux-20eb5e7cb78c331107fbdf2f77a30fbea9338638.tar.gz linux-20eb5e7cb78c331107fbdf2f77a30fbea9338638.zip | |
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: Yan Zhen <yanzhen@vivo.com>
Reviewed-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_queue.c')
0 files changed, 0 insertions, 0 deletions
