diff options
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_ib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_ib.c b/drivers/infiniband/ulp/ipoib/ipoib_ib.c index ff64b1629dbf..6a7003ddb0be 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_ib.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_ib.c | |||
@@ -1082,6 +1082,11 @@ void ipoib_ib_dev_cleanup(struct net_device *dev) | |||
1082 | struct ipoib_dev_priv *priv = netdev_priv(dev); | 1082 | struct ipoib_dev_priv *priv = netdev_priv(dev); |
1083 | 1083 | ||
1084 | ipoib_dbg(priv, "cleaning up ib_dev\n"); | 1084 | ipoib_dbg(priv, "cleaning up ib_dev\n"); |
1085 | /* | ||
1086 | * We must make sure there are no more (path) completions | ||
1087 | * that may wish to touch priv fields that are no longer valid | ||
1088 | */ | ||
1089 | ipoib_flush_paths(dev); | ||
1085 | 1090 | ||
1086 | ipoib_mcast_stop_thread(dev, 1); | 1091 | ipoib_mcast_stop_thread(dev, 1); |
1087 | ipoib_mcast_dev_flush(dev); | 1092 | ipoib_mcast_dev_flush(dev); |