IB/uverbs: Initialize ib_qp_init_attr with zeros
authorMaor Gottlieb <maorg@mellanox.com>
Wed, 22 Jun 2016 14:27:25 +0000 (17:27 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 23 Jun 2016 14:03:57 +0000 (10:03 -0400)
commitb57141c1abe41e26c09b1b1b7ece463464ba6de2
treecb899b075be70fa45f0d3a7c7aa2e2888c7eecf3
parentb3556005c5f319285610e3eae88b4078e1a4d3bc
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>
drivers/infiniband/core/uverbs_cmd.c