diff options
| author | Li RongQing <lirongqing@baidu.com> | 2026-06-01 12:56:54 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@nvidia.com> | 2026-06-05 19:41:48 +0300 |
| commit | 309cacf953aa7e289ce50b3e7e4424c63103c333 (patch) | |
| tree | 057f69a9108004e9b5ea81b269132eebd3abd075 /include/linux | |
| parent | 9b2207bc5cdb955bdae34b3eec80f04979e17081 (diff) | |
| download | linux-309cacf953aa7e289ce50b3e7e4424c63103c333.tar.xz | |
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 'include/linux')
0 files changed, 0 insertions, 0 deletions
