diff options
author | 2025-02-27 20:23:18 -0800 | |
---|---|---|
committer | 2025-03-03 15:04:09 -0800 | |
commit | fa336adc100e1d76a50da782c3e9abb1541a72f3 (patch) | |
tree | 1db590f13d0a1ffbc3d7dd0c22be687d295e49c3 /drivers/net/wireless/intel/iwlwifi/mld/tests/utils.c | |
parent | ipv4: fib: Use cached net in fib_inetaddr_event(). (diff) | |
download | wireguard-linux-fa336adc100e1d76a50da782c3e9abb1541a72f3.tar.xz wireguard-linux-fa336adc100e1d76a50da782c3e9abb1541a72f3.zip |
ipv4: fib: Allocate fib_info_hash[] and fib_info_laddrhash[] by kvcalloc().
Both fib_info_hash[] and fib_info_laddrhash[] are hash tables for
struct fib_info and are allocated by kvzmalloc() separately.
Let's replace the two kvzmalloc() calls with kvcalloc() to remove
the fib_info_laddrhash pointer later.
Note that fib_info_hash_alloc() allocates a new hash table based on
fib_info_hash_bits because we will remove fib_info_hash_size later.
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20250228042328.96624-3-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mld/tests/utils.c')
0 files changed, 0 insertions, 0 deletions