OSDN Git Service

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:39:24 +0000 (08:39 +0200)
commit10edff95113a26e4a126f03485762f2691cd10e4
tree6aa147345ccba57b374ee20a30256f39ac28dde3
parentb5781a323ac8f7ee2dd4d523a9aa8558697c7506
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