mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
IB/ipoib: Fix error return code in ipoib_dev_init()
[ Upstream commit99a7e2bf70] 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:515ed4f3aa("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
030f2ad6ce
commit
745cb5eb3c
@@ -1752,7 +1752,8 @@ int ipoib_dev_init(struct net_device *dev, struct ib_device *ca, int port)
|
||||
goto out_free_pd;
|
||||
}
|
||||
|
||||
if (ipoib_neigh_hash_init(priv) < 0) {
|
||||
ret = ipoib_neigh_hash_init(priv);
|
||||
if (ret) {
|
||||
pr_warn("%s failed to init neigh hash\n", dev->name);
|
||||
goto out_dev_uninit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user