mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
IB/usnic: Fix out of bounds index check in query pkey
commit4959d5da57upstream. The pkey table size is one element, index should be tested for > 0 instead of > 1. Fixes:e3cf00d0a8("IB/usnic: Add Cisco VIC low-level hardware driver") Signed-off-by: Gal Pressman <galpress@amazon.com> Acked-by: Parvi Kaustubhi <pkaustub@cisco.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
parent
215bf080de
commit
f6fc768f97
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue