Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mlx5: Fail in create_cq if uar_page_index size is unsupported
The mlx5_ib_create_cq struct only has a 16 bit field for the uar page index. Therefore, if the caller attempts to create a CQ with a uar page index greater than or equal to 2^16, the function will fail explicitly to avoid overflowing the struct field. Fixes: 0c7212c ("mlx5: Support dyn UAR for CQ") Signed-off-by: Akiva Goldberger <agoldberger@nvidia.com> Reviewed-by: Patrisious Haddad <phaddad@nvidia.com> Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
- Loading branch information