summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2026-06-01 05:56:54 -0400
committerJason Gunthorpe <jgg@nvidia.com>2026-06-05 13:41:48 -0300
commit309cacf953aa7e289ce50b3e7e4424c63103c333 (patch)
tree057f69a9108004e9b5ea81b269132eebd3abd075 /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
parent9b2207bc5cdb955bdae34b3eec80f04979e17081 (diff)
RDMA/mlx5: Fix error propagation in __mlx5_ib_add
__mlx5_ib_add() currently returns -ENOMEM on any stage initialization failure, losing the actual error code returned by the init function. This makes it impossible for callers to distinguish between different failure reasons (e.g. -EINVAL, -EIO, -EOPNOTSUPP) and leads to misleading error handling. Fix it by returning the actual error code stored in 'err'. Link: https://patch.msgid.link/r/20260601095654.2178-1-lirongqing@baidu.com Signed-off-by: Li RongQing <lirongqing@baidu.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions