diff options
author | Maor Gottlieb <maorg@mellanox.com> | 2016-06-22 17:27:25 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-06-23 17:03:57 +0300 |
commit | b57141c1abe41e26c09b1b1b7ece463464ba6de2 (patch) | |
tree | cb899b075be70fa45f0d3a7c7aa2e2888c7eecf3 | |
parent | b3556005c5f319285610e3eae88b4078e1a4d3bc (diff) | |
download | linux-b57141c1abe41e26c09b1b1b7ece463464ba6de2.tar.xz |
IB/uverbs: Initialize ib_qp_init_attr with zeros
Initialize ib_qp_init_attr with zeros in order to avoid from garbage
in fields that won't be set with user values.
Fixes: a060b5629ab06 ('IB/core: generic RDMA READ/WRITE API')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | drivers/infiniband/core/uverbs_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/uverbs_cmd.c b/drivers/infiniband/core/uverbs_cmd.c index 1a8babb8ee3c..825021d1008b 100644 --- a/drivers/infiniband/core/uverbs_cmd.c +++ b/drivers/infiniband/core/uverbs_cmd.c @@ -1747,7 +1747,7 @@ static int create_qp(struct ib_uverbs_file *file, struct ib_srq *srq = NULL; struct ib_qp *qp; char *buf; - struct ib_qp_init_attr attr; + struct ib_qp_init_attr attr = {}; struct ib_uverbs_ex_create_qp_resp resp; int ret; |