diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-09-19 20:28:38 +0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-09-19 10:12:44 -0600 |
commit | 0965cc953a235196b8d6ef0cba45ecb5c355194f (patch) | |
tree | d2b45ba1edf001b7b93aae312d60bf0b1098d109 /drivers/infiniband/core/uverbs_main.c | |
parent | RDMA/i40iw: Fix incorrect iterator type (diff) | |
download | linux-dev-0965cc953a235196b8d6ef0cba45ecb5c355194f.tar.xz linux-dev-0965cc953a235196b8d6ef0cba45ecb5c355194f.zip |
RDMA/core: Properly return the error code of rdma_set_src_addr_rcu
rdma_set_src_addr_rcu should check copy_src_l2_addr fails, rather than
always return 0. Also copy_src_l2_addr should return 'ret' as its return
value when rdma_translate_ip fails.
Fixes: c31d4b2ddf07 ("RDMA/core: Protect against changing dst->dev during destination resolve")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/uverbs_main.c')
0 files changed, 0 insertions, 0 deletions