linux/drivers/infiniband/ulp
Wang Yufen ed461b30b2 RDMA/srp: Fix error return code in srp_parse_options()
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. Also investigate each case separately as Andy suggessted.

Fixes: e711f968c4 ("IB/srp: replace custom implementation of hex2bin()")
Fixes: 2a174df0c6 ("IB/srp: Use kstrtoull() instead of simple_strtoull()")
Fixes: 19f313438c ("IB/srp: Add RDMA/CM support")
Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Link: https://lore.kernel.org/r/1669953638-11747-2-git-send-email-wangyufen@huawei.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
2022-12-04 15:26:58 +02:00
..
ipoib treewide: use get_random_u32() when possible 2022-10-11 17:42:58 -06:00
iser IB/iser: open code iser_disconnected_handler 2022-10-19 10:38:35 +03:00
isert IB/isert: use the ISCSI_LOGIN_CURRENT_STAGE macro 2022-11-21 14:49:21 -04:00
opa_vnic IB: move from strlcpy with unused retval to strscpy 2022-08-21 14:18:02 +03:00
rtrs RDMA/rtrs-srv: Remove kobject_del from rtrs_srv_destroy_once_sysfs_root_folders 2022-11-17 13:47:28 +02:00
srp RDMA/srp: Fix error return code in srp_parse_options() 2022-12-04 15:26:58 +02:00
srpt RDMA/srpt: Use flex array destination for memcpy() 2022-09-20 15:05:29 +03:00
Makefile RDMA/rtrs: include client and server modules into kernel compilation 2020-05-17 18:57:15 -03:00