diff options
author | Haggai Eran <haggaie@mellanox.com> | 2014-01-14 10:45:13 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-01-23 02:23:44 -0500 |
commit | e08a8761d89b7625144c3fbf0ff9643159135c96 (patch) | |
tree | 9119591c55149e6aaabdd909bb0763627b16b436 | |
parent | c1be5232d21de68f46637e617225b9b7c586451a (diff) |
mlx5_core: Fix out arg size in access_register command
The output size should be the sum of the core access reg output struct
plus the size of the specific register data provided by the caller.
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/port.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/port.c b/drivers/net/ethernet/mellanox/mlx5/core/port.c index f6afe7b5a675..8c9ac870ecb1 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/port.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/port.c | |||
@@ -57,7 +57,7 @@ int mlx5_core_access_reg(struct mlx5_core_dev *dev, void *data_in, | |||
57 | in->arg = cpu_to_be32(arg); | 57 | in->arg = cpu_to_be32(arg); |
58 | in->register_id = cpu_to_be16(reg_num); | 58 | in->register_id = cpu_to_be16(reg_num); |
59 | err = mlx5_cmd_exec(dev, in, sizeof(*in) + size_in, out, | 59 | err = mlx5_cmd_exec(dev, in, sizeof(*in) + size_in, out, |
60 | sizeof(out) + size_out); | 60 | sizeof(*out) + size_out); |
61 | if (err) | 61 | if (err) |
62 | goto ex2; | 62 | goto ex2; |
63 | 63 | ||