diff options
author | Xiao Yang <[email protected]> | 2021-06-21 15:14:56 +0800 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2021-06-21 21:05:02 -0300 |
commit | 20ec0a6d6016aa28b9b3299be18baef1a0f91cd2 (patch) | |
tree | 3a4f4f674d8999f07b5e2430081a8e89cdbba78e /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | |
parent | 4bf5cc63192b9f1adf44525c3da06056b4cf7925 (diff) |
RDMA/rxe: Don't overwrite errno from ib_umem_get()
rxe_mr_init_user() always returns the fixed -EINVAL when ib_umem_get()
fails so it's hard for user to know which actual error happens in
ib_umem_get(). For example, ib_umem_get() will return -EOPNOTSUPP when
trying to pin pages on a DAX file.
Return actual error as mlx4/mlx5 does.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Xiao Yang <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
0 files changed, 0 insertions, 0 deletions