[PATCH][net-next] net: wireguard: Use kvcalloc() instead of kvzalloc()

Jason A. Donenfeld Jason at zx2c4.com
Tue Sep 28 22:35:07 UTC 2021


Hi Gustavo,

table_size never exceeds 8192, so there's really not an issue with
integer overflow here. However, I checked the codegen of before/after
this patch, and it looks like gcc realizes this too, and so elides
them to be basically the same. So I'll apply this to the
wireguard-linux tree. Thanks for the patch.

Jason


More information about the WireGuard mailing list