|
@@ -218,6 +218,9 @@ void mlx4_unregister_device(struct mlx4_dev *dev)
|
|
struct mlx4_priv *priv = mlx4_priv(dev);
|
|
struct mlx4_priv *priv = mlx4_priv(dev);
|
|
struct mlx4_interface *intf;
|
|
struct mlx4_interface *intf;
|
|
|
|
|
|
|
|
+ if (!(dev->persist->interface_state & MLX4_INTERFACE_STATE_UP))
|
|
|
|
+ return;
|
|
|
|
+
|
|
mlx4_stop_catas_poll(dev);
|
|
mlx4_stop_catas_poll(dev);
|
|
mutex_lock(&intf_mutex);
|
|
mutex_lock(&intf_mutex);
|
|
|
|
|