diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-11-29 10:39:28 -0500 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-11-29 19:50:50 -0800 |
commit | 0065ed65b309439c1ea2d70c717c73672550ae6a (patch) | |
tree | 92b3d56e173a3bf1b17a9387f5d126a2f3dfb216 /drivers/net/wireguard/queueing.c | |
parent | a0b44acb448d7a4805f062fe4f776142305f89aa (diff) | |
download | wireguard-linux-trimmed-0065ed65b309439c1ea2d70c717c73672550ae6a.tar.gz wireguard-linux-trimmed-0065ed65b309439c1ea2d70c717c73672550ae6a.zip |
wireguard: ratelimiter: use kvcalloc() instead of kvzalloc()
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>
Diffstat (limited to 'drivers/net/wireguard/queueing.c')
0 files changed, 0 insertions, 0 deletions