linux/drivers/infiniband
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
..
core RDMA/nldev: Fix failure to send large messages 2022-11-30 10:33:19 +02:00
hw RDMA/hfi1: Fix error return code in parse_platform_config() 2022-12-04 15:26:58 +02:00
sw RDMA/rxe: Enable atomic write capability for rxe device 2022-12-01 19:51:10 -04:00
ulp IB/isert: use the ISCSI_LOGIN_CURRENT_STAGE macro 2022-11-21 14:49:21 -04:00
Kconfig RDMA: Disable IB HW for UML 2022-12-04 15:22:03 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00