summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorMaher Sanalla <msanalla@nvidia.com>2024-10-15 12:32:05 +0300
committerPaolo Abeni <pabeni@redhat.com>2024-10-17 12:14:07 +0200
commitd4f25be27e3ef7e23998fbd3dd4bff0602de7ae5 (patch)
tree8c37740e45e738e90041512f21f81f6bf80b59d6 /.editorconfig
parent9addffa3435973e016f066e13f950be5eed73c06 (diff)
downloadlwn-d4f25be27e3ef7e23998fbd3dd4bff0602de7ae5.tar.gz
lwn-d4f25be27e3ef7e23998fbd3dd4bff0602de7ae5.zip
net/mlx5: Check for invalid vector index on EQ creation
Currently, mlx5 driver does not enforce vector index to be lower than the maximum number of supported completion vectors when requesting a new completion EQ. Thus, mlx5_comp_eqn_get() fails when trying to acquire an IRQ with an improper vector index. To prevent the case above, enforce that vector index value is valid and lower than maximum in mlx5_comp_eqn_get() before handling the request. Fixes: f14c1a14e632 ("net/mlx5: Allocate completion EQs dynamically") Signed-off-by: Maher Sanalla <msanalla@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to '.editorconfig')
0 files changed, 0 insertions, 0 deletions