diff options
| author | Leon Romanovsky <[email protected]> | 2025-07-20 09:25:34 +0000 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2025-07-21 06:27:40 +0000 |
| commit | d59ebb4549ff9bdba7abf6a5246a749e7f4a36ed (patch) | |
| tree | b929f792cf46a86a1eef590c3e7e27b7505473f1 /drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c | |
| parent | RDMA/mlx5: remove redundant check on err on return expression (diff) | |
| download | kernel-d59ebb4549ff9bdba7abf6a5246a749e7f4a36ed.tar.gz kernel-d59ebb4549ff9bdba7abf6a5246a749e7f4a36ed.zip | |
RDMA/mlx5: Fix returned type from _mlx5r_umr_zap_mkey()
As Colin reported:
"The variable zapped_blocks is a size_t type and is being assigned a int
return value from the call to _mlx5r_umr_zap_mkey. Since zapped_blocks is an
unsigned type, the error check for zapped_blocks < 0 will never be true."
So separate return error and nblocks assignment.
Fixes: e73242aa14d2 ("RDMA/mlx5: Optimize DMABUF mkey page size")
Reported-by: Colin King (gmail) <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]
Link: https://patch.msgid.link/71d8ea208ac7eaa4438af683b9afaed78625e419.1753003467.git.leon@kernel.org
Reviewed-by: Zhu Yanjun <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c')
0 files changed, 0 insertions, 0 deletions
