Home Home > GIT Browse > SLE15-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tbogendoerfer@suse.de>2019-08-15 18:18:48 +0200
committerThomas Bogendoerfer <tbogendoerfer@suse.de>2019-08-15 18:18:52 +0200
commitb3ec7107c945d1fdeb4c760f97bae7d12991a6d1 (patch)
tree67d2c59a3e80f95f10b51ae9323e99d63824bb0d
parent3e0a7e6b2b9bb829cf747fb1bc4ce1470007e0c6 (diff)
net/mlx4_core: Zero out lkey field in SW2HW_MPT fw command
(bsc#1145678). suse-commit: 83b2f7934612a6cb754828619de14509d7781761
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/mr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mr.c b/drivers/net/ethernet/mellanox/mlx4/mr.c
index 2e84f10f59ba..1a11bc0e1612 100644
--- a/drivers/net/ethernet/mellanox/mlx4/mr.c
+++ b/drivers/net/ethernet/mellanox/mlx4/mr.c
@@ -363,6 +363,7 @@ int mlx4_mr_hw_write_mpt(struct mlx4_dev *dev, struct mlx4_mr *mmr,
container_of((void *)mpt_entry, struct mlx4_cmd_mailbox,
buf);
+ (*mpt_entry)->lkey = 0;
err = mlx4_SW2HW_MPT(dev, mailbox, key);
}