aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/ipoib/ipoib.h
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2005-10-11 14:08:24 -0400
committerRoland Dreier <rolandd@cisco.com>2005-10-17 18:20:29 -0400
commit5b6810e048435de508ef66aebd6b78db13d651b8 (patch)
treeb54df96d5821a6ed41d778bf1ecfb54dbc7a4999 /drivers/infiniband/ulp/ipoib/ipoib.h
parentefaae8f71f3088cc73c9e5ceabbd314aa82ac768 (diff)
[IPoIB] Rename ipoib_create_qp() -> ipoib_init_qp() and fix error cleanup
ipoib_create_qp() no longer creates IPoIB's QP, so it shouldn't destroy the QP on failure -- that unwinding happens elsewhere, so the current code can cause a double free. While we're at it, the function's name should match what it actually does, so rename it to ipoib_init_qp(). Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib.h')
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h
index 4ea1c1ca85bc..6b14bd1c60a0 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib.h
+++ b/drivers/infiniband/ulp/ipoib/ipoib.h
@@ -277,7 +277,7 @@ int ipoib_mcast_attach(struct net_device *dev, u16 mlid,
277int ipoib_mcast_detach(struct net_device *dev, u16 mlid, 277int ipoib_mcast_detach(struct net_device *dev, u16 mlid,
278 union ib_gid *mgid); 278 union ib_gid *mgid);
279 279
280int ipoib_qp_create(struct net_device *dev); 280int ipoib_init_qp(struct net_device *dev);
281int ipoib_transport_dev_init(struct net_device *dev, struct ib_device *ca); 281int ipoib_transport_dev_init(struct net_device *dev, struct ib_device *ca);
282void ipoib_transport_dev_cleanup(struct net_device *dev); 282void ipoib_transport_dev_cleanup(struct net_device *dev);
283 283