commit | fe4aa6dddb324fa8945e9e0f5697b6a9201971a8 | [log] [tgz] |
---|---|---|
author | Gal Pressman <galpress@amazon.com> | Mon Jan 07 17:27:54 2019 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Jan 29 10:24:10 2020 +0100 |
tree | e55376253e05bd7043c77f0530d4643d4488e492 | |
parent | 3b22287630073bf15ca225552bf61c2f2f52ae29 [diff] |
IB/usnic: Fix out of bounds index check in query pkey [ Upstream commit 4959d5da5737dd804255c75b8cea0a2929ce279a ] The pkey table size is one element, index should be tested for > 0 instead of > 1. Fixes: e3cf00d0a87f ("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: Sasha Levin <sashal@kernel.org>