Skip to content

Commit 99a7e2b

Browse files
Wei Yongjunjgunthorpe
authored andcommitted
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: 515ed4f ("IB/IPoIB: Separate control and data related initializations") Signed-off-by: Wei Yongjun <[email protected]> Reviewed-by: Yuval Shaia <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent cb80fb1 commit 99a7e2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/infiniband/ulp/ipoib/ipoib_main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1791,7 +1791,8 @@ int ipoib_dev_init(struct net_device *dev, struct ib_device *ca, int port)
17911791
goto out_free_pd;
17921792
}
17931793

1794-
if (ipoib_neigh_hash_init(priv) < 0) {
1794+
ret = ipoib_neigh_hash_init(priv);
1795+
if (ret) {
17951796
pr_warn("%s failed to init neigh hash\n", dev->name);
17961797
goto out_dev_uninit;
17971798
}

0 commit comments

Comments
 (0)