RDMA/erdma: Fix incorrect response returned from query_qp
authorBoshi Yu <boshiyu@linux.alibaba.com>
Thu, 26 Dec 2024 08:41:09 +0000 (16:41 +0800)
committerLeon Romanovsky <leon@kernel.org>
Mon, 30 Dec 2024 18:42:52 +0000 (13:42 -0500)
commit3761e0ad79c137d61baf5f1518e4795f35fe8159
tree1f6fd80ee8fe03a6b506569b57dd1e52edd8cb8d
parent67831baff0d7a7ae12bba80c721fffacfab82e89
RDMA/erdma: Fix incorrect response returned from query_qp

The erdma_post_cmd_wait() function returns the cmdq response
only when both resp0 and resp1 are not NULL.

Reviewed-by: Cheng Xu <chengyou@linux.alibaba.com>
Signed-off-by: Boshi Yu <boshiyu@linux.alibaba.com>
Link: https://patch.msgid.link/20241226084141.74823-3-boshiyu@linux.alibaba.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/erdma/erdma_verbs.c