|
@@ -3115,7 +3115,7 @@ static void *mlx5_ib_add(struct mlx5_core_dev *mdev)
|
|
|
}
|
|
|
err = init_node_data(dev);
|
|
|
if (err)
|
|
|
- goto err_dealloc;
|
|
|
+ goto err_free_port;
|
|
|
|
|
|
mutex_init(&dev->flow_db.lock);
|
|
|
mutex_init(&dev->cap_mask_mutex);
|
|
@@ -3125,7 +3125,7 @@ static void *mlx5_ib_add(struct mlx5_core_dev *mdev)
|
|
|
if (ll == IB_LINK_LAYER_ETHERNET) {
|
|
|
err = mlx5_enable_roce(dev);
|
|
|
if (err)
|
|
|
- goto err_dealloc;
|
|
|
+ goto err_free_port;
|
|
|
}
|
|
|
|
|
|
err = create_dev_resources(&dev->devr);
|