diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-07-25 19:40:37 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-25 22:17:44 -0700 |
commit | 5ea14712d7a22703645217c5296e72cb5adba0a6 (patch) | |
tree | 4179e0924b2d71193267da4cc6d9a2e97dbd12fb /net/smc/smc_pnet.c | |
parent | e76c1d3d2a8313040d8316f760e9476028a27758 (diff) | |
download | linux-5ea14712d7a22703645217c5296e72cb5adba0a6.tar.gz linux-5ea14712d7a22703645217c5296e72cb5adba0a6.tar.bz2 linux-5ea14712d7a22703645217c5296e72cb5adba0a6.zip |
nfp: protect from theoretical size overflows on HW descriptor ring
Use array_size() and store the size as full size_t to protect from
theoretical size overflow when handling HW descriptor rings.
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>
Diffstat (limited to 'net/smc/smc_pnet.c')
0 files changed, 0 insertions, 0 deletions