RDMA/hns: Uninitialized variable in modify_qp_init_to_rtr()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 29 May 2020 08:39:18 +0000 (11:39 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 2 Jun 2020 23:32:54 +0000 (20:32 -0300)
commit87d9e568496aeb519f1da61f54ac0dcb8d37561e
treee4b8a72cf9e5668fe69fbc67f6253d58c49fd8c9
parent278f74b39e641e1315e1b7f11b26aa1f989a40fc
RDMA/hns: Uninitialized variable in modify_qp_init_to_rtr()

The "dmac" variable is used before it is initialized.

Fixes: 494c3b312255 ("RDMA/hns: Refactor the QP context filling process related to WQE buffer configure")
Link: https://lore.kernel.org/r/20200529083918.GA1298465@mwanda
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c