diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-11-29 10:39:28 -0500 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-07-07 13:26:45 +0200 |
commit | f703a54ccfbd5c15d52eb7d8e9f8e8723dc8bb3e (patch) | |
tree | 704c599bc0b6ad56c626496fac22dabdb232a2b7 /drivers/net/wireguard/socket.h | |
parent | 58877430836b89115e0e958ca368f3347bce04c8 (diff) | |
download | wireguard-linux-trimmed-f703a54ccfbd5c15d52eb7d8e9f8e8723dc8bb3e.tar.gz wireguard-linux-trimmed-f703a54ccfbd5c15d52eb7d8e9f8e8723dc8bb3e.zip |
wireguard: ratelimiter: use kvcalloc() instead of kvzalloc()
commit 4e3fd721710553832460c179c2ee5ce67ef7f1e0 upstream.
Use 2-factor argument form kvcalloc() instead of kvzalloc().
Link: https://github.com/KSPP/linux/issues/162
Fixes: a8f1bc7bdea3 ("net: WireGuard secure network tunnel")
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
[Jason: Gustavo's link above is for KSPP, but this isn't actually a
security fix, as table_size is bounded to 8192 anyway, and gcc realizes
this, so the codegen comes out to be about the same.]
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'drivers/net/wireguard/socket.h')
0 files changed, 0 insertions, 0 deletions