summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-pl.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-07-26 04:40:37 +0200
committerDavid S. Miller <davem@davemloft.net>2018-07-26 07:17:44 +0200
commit5ea14712d7a22703645217c5296e72cb5adba0a6 (patch)
tree4179e0924b2d71193267da4cc6d9a2e97dbd12fb /drivers/hid/hid-pl.c
parentnfp: restore correct ordering of fields in rx ring structure (diff)
downloadlinux-5ea14712d7a22703645217c5296e72cb5adba0a6.tar.xz
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 'drivers/hid/hid-pl.c')
0 files changed, 0 insertions, 0 deletions