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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2018 06:38:00 +0000 (08:38 +0200)
commit745cb5eb3cef672b8a5acf0d63d8c9c2a1a3bf19
tree0e589ef4b9973c2085c182cfb51cd6d40c7e2c95
parent030f2ad6ce16f3c49e4d9c65a4cd36f477f8e7b9
IB/ipoib: Fix error return code in ipoib_dev_init()

[ Upstream commit 99a7e2bf704d64c966dfacede1ba2d9b47cb676e ]

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: 515ed4f3aab4 ("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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/ulp/ipoib/ipoib_main.c