浏览代码

IPoIB: Pass correct pointer when flushing child interfaces

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>
Leonid Arsh 19 年之前
父节点
当前提交
6f633c8d69
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/infiniband/ulp/ipoib/ipoib_ib.c

+ 1 - 1
drivers/infiniband/ulp/ipoib/ipoib_ib.c

@@ -605,7 +605,7 @@ void ipoib_ib_dev_flush(void *_dev)
 
 
 	/* Flush any child interfaces too */
 	/* Flush any child interfaces too */
 	list_for_each_entry(cpriv, &priv->child_intfs, list)
 	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);
 	mutex_unlock(&priv->vlan_mutex);
 }
 }