aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/pci.c b/drivers/net/ethernet/mellanox/mlxsw/pci.c
index 371ea3f56aed..de69e719dc9d 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/pci.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/pci.c
@@ -1662,8 +1662,9 @@ static int mlxsw_pci_cmd_exec(void *bus_priv, u16 opcode, u8 opcode_mod,
1662 CIR_OUT_PARAM_LO)); 1662 CIR_OUT_PARAM_LO));
1663 memcpy(out_mbox + sizeof(tmp), &tmp, sizeof(tmp)); 1663 memcpy(out_mbox + sizeof(tmp), &tmp, sizeof(tmp));
1664 } 1664 }
1665 } else if (!err && out_mbox) 1665 } else if (!err && out_mbox) {
1666 memcpy(out_mbox, mlxsw_pci->cmd.out_mbox.buf, out_mbox_size); 1666 memcpy(out_mbox, mlxsw_pci->cmd.out_mbox.buf, out_mbox_size);
1667 }
1667 1668
1668 mutex_unlock(&mlxsw_pci->cmd.lock); 1669 mutex_unlock(&mlxsw_pci->cmd.lock);
1669 1670