Skip to content
Commit e0deb0e9 authored by Patrisious Haddad's avatar Patrisious Haddad Committed by Greg Kroah-Hartman
Browse files

RDMA/mlx5: Add check for srq max_sge attribute

[ Upstream commit 36ab7ada ]

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: e126ba97

 ("mlx5: Add driver for Mellanox Connect-IB adapters")
Signed-off-by: default avatarPatrisious Haddad <phaddad@nvidia.com>
Link: https://lore.kernel.org/r/277ccc29e8d57bfd53ddeb2ac633f2760cf8cdd0.1716900410.git.leon@kernel.org
Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 3b733016
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment