linux/drivers/infiniband/hw
Wang Yufen 725349f8ba RDMA/hfi1: Fix error return code in parse_platform_config()
In the previous iteration of the while loop, the "ret" may have been
assigned a value of 0, so the error return code -EINVAL may have been
incorrectly set to 0. To fix set valid return code before calling to
goto.

Fixes: 97167e8134 ("staging/rdma/hfi1: Tune for unknown channel if configuration file is absent")
Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Link: https://lore.kernel.org/r/1669953638-11747-1-git-send-email-wangyufen@huawei.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
2022-12-04 15:26:58 +02:00
..
bnxt_re IB: move from strlcpy with unused retval to strscpy 2022-08-21 14:18:02 +03:00
cxgb4 treewide: use get_random_u32() when possible 2022-10-11 17:42:58 -06:00
efa RDMA/efa: Support CQ receive entries with source GID 2022-08-21 12:35:59 +03:00
erdma RDMA/erdma: Notify the latest PI to FW for reflushing when necessary 2022-11-24 14:58:52 -04:00
hfi1 RDMA/hfi1: Fix error return code in parse_platform_config() 2022-12-04 15:26:58 +02:00
hns RDMA/hns: fix memory leak in hns_roce_alloc_mr() 2022-11-22 16:20:08 +02:00
irdma RDMA/irdma: Initialize net_type before checking it 2022-11-22 16:13:44 +02:00
mana RDMA/mana: Remove redefinition of basic u64 type 2022-11-14 10:16:46 +02:00
mlx4 RDMA/mlx4: Remove NULL check before dev_{put, hold} 2022-11-29 11:22:12 +02:00
mlx5 RDMA/mlx5: Change debug log level for remote access error syndromes 2022-11-06 20:31:35 +02:00
mthca IB: move from strlcpy with unused retval to strscpy 2022-08-21 14:18:02 +03:00
ocrdma IB: move from strlcpy with unused retval to strscpy 2022-08-21 14:18:02 +03:00
qedr RDMA/qedr: fix repeated words in comments 2022-10-24 14:48:15 +03:00
qib RDMA/qib: fix repeated words in comments 2022-10-24 14:33:29 +03:00
usnic RDMA/usnic: fix set-but-not-unused variable 'flags' warning 2022-09-29 11:32:53 +03:00
vmw_pvrdma RDMA/pvrdma: Remove useless DMA-32 fallback configuration 2022-01-28 10:49:04 -04:00
Makefile RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter 2022-11-11 11:40:09 +02:00