aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mana/device.c
diff options
context:
space:
mode:
authorZhu Yanjun <[email protected]>2024-04-08 14:21:42 +0000
committerLeon Romanovsky <[email protected]>2024-04-11 11:47:26 +0000
commitdfcdb38b21e4fb92a49acdbdf6afa82c07c8eba0 (patch)
tree91c261e8f17b72601f78e32b82d10af94e1b70c6 /drivers/infiniband/hw/mana/device.c
parentRDMA/mana_ib: remove useless return values from dbg prints (diff)
downloadkernel-dfcdb38b21e4fb92a49acdbdf6afa82c07c8eba0.tar.gz
kernel-dfcdb38b21e4fb92a49acdbdf6afa82c07c8eba0.zip
RDMA/rxe: Return the correct errno
In the function __rxe_add_to_pool, the function xa_alloc_cyclic is called. The return value of the function xa_alloc_cyclic is as below: " Return: 0 if the allocation succeeded without wrapping. 1 if the allocation succeeded after wrapping, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in @limit. " But now the function __rxe_add_to_pool only returns -EINVAL. All the returned error value should be returned to the caller. Signed-off-by: Zhu Yanjun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'drivers/infiniband/hw/mana/device.c')
0 files changed, 0 insertions, 0 deletions