]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Do not overwrite the error code during error unwind in hns_roce_init
authorLijun Ou <oulijun@huawei.com>
Wed, 25 Jul 2018 07:29:31 +0000 (15:29 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 26 Jul 2018 22:48:48 +0000 (16:48 -0600)
commit16385d588575ab204d45c940823dc22e99112eb5
treed711ce2cf1a026107e9ccb14144e966f5c7a0fc8
parent926ae9a46014cd6b0eaa4d114a5c689a6ce7bd87
RDMA/hns: Do not overwrite the error code during error unwind in hns_roce_init

When init cmq fail in initial flow of RoCE, it should return the errno of
cmq_init function, not of the rest call.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_main.c