IPoIB: Pass correct pointer when flushing child interfaces
authorLeonid Arsh <leonida@voltaire.com>
Fri, 24 Mar 2006 23:47:25 +0000 (15:47 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 24 Mar 2006 23:47:25 +0000 (15:47 -0800)
ipoib_ib_dev_flush() should get passed cpriv->dev, not &cpriv->dev.

Signed-off-by: Leonid Arsh <leonida@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_ib.c

index a1f5a05..f2be500 100644 (file)
@@ -605,7 +605,7 @@ void ipoib_ib_dev_flush(void *_dev)
 
        /* Flush any child interfaces too */
        list_for_each_entry(cpriv, &priv->child_intfs, list)
-               ipoib_ib_dev_flush(&cpriv->dev);
+               ipoib_ib_dev_flush(cpriv->dev);
 
        mutex_unlock(&priv->vlan_mutex);
 }