diff options
author | Patrisious Haddad <phaddad@nvidia.com> | 2024-05-28 15:52:56 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2024-06-21 10:19:36 -0300 |
commit | 36ab7ada64caf08f10ee5a114d39964d1f91e81d (patch) | |
tree | 251a94110fd70fad656fbbd8109bcf85ca36f8d7 /drivers/infiniband/hw/mana/mr.c | |
parent | 81497c148b7a2e4a4fbda93aee585439f7323e2e (diff) |
RDMA/mlx5: Add check for srq max_sge attribute
max_sge attribute is passed by the user, and is inserted and used
unchecked, so verify that the value doesn't exceed maximum allowed value
before using it.
Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters")
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Link: https://lore.kernel.org/r/277ccc29e8d57bfd53ddeb2ac633f2760cf8cdd0.1716900410.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/mana/mr.c')
0 files changed, 0 insertions, 0 deletions