IB/mlx5: Fix returned values of query QP
authorNoa Osherovich <noaos@mellanox.com>
Sat, 4 Jun 2016 12:15:32 +0000 (15:15 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Aug 2016 16:09:24 +0000 (18:09 +0200)
commitcbbfde038e42029e4dfbb303ab5f825fd743973e
treee99f052c840fee5e19b9aef17e3c3ec74f035320
parentbae7400e1e13b1ce617eae73227218d7bff3d829
IB/mlx5: Fix returned values of query QP

commit 0540d8148d419bf769e5aa99c77027febd8922f0 upstream.

Some variables were not initialized properly: max_recv_wr,
max_recv_sge, max_send_wr, qp_context and max_inline_data.

Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB...')
Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/mlx5/qp.c