]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ipoib: Fix error return code in ipoib_dev_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 11 Jul 2018 13:15:42 +0000 (13:15 +0000)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 24 Jul 2018 20:56:37 +0000 (14:56 -0600)
commit219bccdff5fe3534ec8c11a8a48a90889308979e
tree570d43f5cf9e53eeffa69b9cb764ae87f8c7ea74
parenteb738e23cfef8f797648aa1af1966a54407023fa
IB/ipoib: Fix error return code in ipoib_dev_init()

Fix to return a negative error code from the ipoib_neigh_hash_init()
error handling case instead of 0, as done elsewhere in this function.

Fixes: 05d3b7287676 ("IB/IPoIB: Separate control and data related initializations")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c