diff options
| author | Gal Pressman <galpress@amazon.com> | 2019-01-07 17:27:54 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-29 10:21:38 +0100 |
| commit | 4a87975ec461becc5b08396b24b6c62b71d41811 (patch) | |
| tree | 58985eb41c8d4f957e60cbdee66ae298e9337fde /scripts/decode_stacktrace.sh | |
| parent | 0e1cef32bde2ad8493809075832f4860fffcf228 (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>
Diffstat (limited to 'scripts/decode_stacktrace.sh')
0 files changed, 0 insertions, 0 deletions
