Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tbogendoerfer@suse.de>2019-07-30 13:23:38 +0200
committerThomas Bogendoerfer <tbogendoerfer@suse.de>2019-07-30 13:23:38 +0200
commit42a2c67ade9475fbde6b99e02cb5e907914a85fa (patch)
tree1623964a74a510a56da0d7aea278213581259ba0
parentc09c7ffa50accbee5a35914cda9745fbd21e730d (diff)
IB/mlx5: Fix leaking stack memory to userspace (bsc#1143045
CVE-2018-20855). suse-commit: 1773cb431c16cf5c3eaa57cb09b7f30b8288974f
-rw-r--r--drivers/infiniband/hw/mlx5/qp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c
index 88914c9c838d..798f4d47cf70 100644
--- a/drivers/infiniband/hw/mlx5/qp.c
+++ b/drivers/infiniband/hw/mlx5/qp.c
@@ -1524,7 +1524,7 @@ static int create_qp_common(struct mlx5_ib_dev *dev, struct ib_pd *pd,
struct mlx5_ib_resources *devr = &dev->devr;
int inlen = MLX5_ST_SZ_BYTES(create_qp_in);
struct mlx5_core_dev *mdev = dev->mdev;
- struct mlx5_ib_create_qp_resp resp;
+ struct mlx5_ib_create_qp_resp resp = {};
struct mlx5_ib_cq *send_cq;
struct mlx5_ib_cq *recv_cq;
unsigned long flags;