diff options
author | Shay Drory <shayd@nvidia.com> | 2023-05-02 10:03:53 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2023-05-23 07:38:04 +0200 |
commit | 2a0a935fb64ee8af253b9c6133bb6702fb152ac2 (patch) | |
tree | a6c8d8c1dbcdcec549993d364145a7bc4372b2ed /drivers/scsi/mpt3sas | |
parent | net/handshake: Fix sock->file allocation (diff) | |
download | linux-2a0a935fb64ee8af253b9c6133bb6702fb152ac2.tar.xz linux-2a0a935fb64ee8af253b9c6133bb6702fb152ac2.zip |
net/mlx5: Collect command failures data only for known commands
DEVX can issue a general command, which is not used by mlx5 driver.
In case such command is failed, mlx5 is trying to collect the failure
data, However, mlx5 doesn't create a storage for this command, since
mlx5 doesn't use it. This lead to array-index-out-of-bounds error.
Fix it by checking whether the command is known before collecting the
failure data.
Fixes: 34f46ae0d4b3 ("net/mlx5: Add command failures data to debugfs")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/scsi/mpt3sas')
0 files changed, 0 insertions, 0 deletions