diff options
author | Majd Dibbiny <majd@mellanox.com> | 2014-12-02 13:26:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-09 04:45:55 +0300 |
commit | 6b60d5e221ce11f6b247136bd221dbd952fe931e (patch) | |
tree | fdbc80efedfc874fdb9e7bac42d9fbc4d3ca3950 /drivers/net/ethernet/mellanox/mlx5/core/uar.c | |
parent | ab62924ec218c86850561404d5fdb8e96123d533 (diff) | |
download | linux-6b60d5e221ce11f6b247136bd221dbd952fe931e.tar.xz |
net/mlx5_core: Clear outbox of dealloc uar
The outbox should be cleared before executing the command.
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/uar.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/uar.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/uar.c b/drivers/net/ethernet/mellanox/mlx5/core/uar.c index 0a6348cefc01..06801d6f595e 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/uar.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/uar.c @@ -96,6 +96,7 @@ int mlx5_cmd_free_uar(struct mlx5_core_dev *dev, u32 uarn) int err; memset(&in, 0, sizeof(in)); + memset(&out, 0, sizeof(out)); in.hdr.opcode = cpu_to_be16(MLX5_CMD_OP_DEALLOC_UAR); in.uarn = cpu_to_be32(uarn); err = mlx5_cmd_exec(dev, &in, sizeof(in), &out, sizeof(out)); |