net/mlx4_core: Fixed error flow in rem_slave_eqs
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ba062d5219
commit
eb71d0d63f
@ -3152,14 +3152,13 @@ static void rem_slave_eqs(struct mlx4_dev *dev, int slave)
|
|||||||
MLX4_CMD_HW2SW_EQ,
|
MLX4_CMD_HW2SW_EQ,
|
||||||
MLX4_CMD_TIME_CLASS_A,
|
MLX4_CMD_TIME_CLASS_A,
|
||||||
MLX4_CMD_NATIVE);
|
MLX4_CMD_NATIVE);
|
||||||
mlx4_dbg(dev, "rem_slave_eqs: failed"
|
if (err)
|
||||||
" to move slave %d eqs %d to"
|
mlx4_dbg(dev, "rem_slave_eqs: failed"
|
||||||
" SW ownership\n", slave, eqn);
|
" to move slave %d eqs %d to"
|
||||||
|
" SW ownership\n", slave, eqn);
|
||||||
mlx4_free_cmd_mailbox(dev, mailbox);
|
mlx4_free_cmd_mailbox(dev, mailbox);
|
||||||
if (!err) {
|
atomic_dec(&eq->mtt->ref_count);
|
||||||
atomic_dec(&eq->mtt->ref_count);
|
state = RES_EQ_RESERVED;
|
||||||
state = RES_EQ_RESERVED;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user