projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab62924
)
net/mlx5_core: Clear outbox of dealloc uar
author
Majd Dibbiny
<majd@mellanox.com>
Tue, 2 Dec 2014 10:26:16 +0000
(12:26 +0200)
committer
David S. Miller
<davem@davemloft.net>
Tue, 9 Dec 2014 01:45:55 +0000
(20:45 -0500)
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>
drivers/net/ethernet/mellanox/mlx5/core/uar.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/uar.c
b/drivers/net/ethernet/mellanox/mlx5/core/uar.c
index 0a6348cefc0137999577dedf341bef369e6b0166..06801d6f595ef99f0d18cc91d37dcac62be445db 100644
(file)
--- 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));