commit | 4662717038679520af832fcb8c4fefadb97facf8 | [log] [tgz] |
---|---|---|
author | Jakub Kicinski <jakub.kicinski@netronome.com> | Wed Jul 25 19:40:35 2018 -0700 |
committer | David S. Miller <davem@davemloft.net> | Wed Jul 25 22:17:44 2018 -0700 |
tree | 6f0ba9dd4a68e44ea5b925d18d34f3d7dfffabbd | |
parent | 5b0ced17edc5710d4e946392d0f2934a9e07b37f [diff] |
nfp: use kvcalloc() to allocate SW buffer descriptor arrays Use kvcalloc() instead of tmp variable + kzalloc() when allocating SW buffer information to allow falling back to vmalloc and to protect from theoretical integer overflow. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>