From ab630a065a3344c84ec1b280696800fd62afda03 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 6 Aug 2019 18:16:19 -0400 Subject: [PATCH] pvrdma: Fix compilation error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In function ‘create_qp’: hw/rdma/vmw/pvrdma_cmd.c:517:16: error: ‘rc’ undeclared The backport of 509f57c98 in 41dd30ff6 mishandled the conflict Signed-off-by: Cole Robinson Signed-off-by: Michael Roth --- hw/rdma/vmw/pvrdma_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/rdma/vmw/pvrdma_cmd.c b/hw/rdma/vmw/pvrdma_cmd.c index bb9a9f1cd17..a3a86d7c8e1 100644 --- a/hw/rdma/vmw/pvrdma_cmd.c +++ b/hw/rdma/vmw/pvrdma_cmd.c @@ -514,7 +514,7 @@ static int create_qp(PVRDMADev *dev, union pvrdma_cmd_req *req, cmd->recv_cq_handle, rings, &resp->qpn); if (resp->hdr.err) { destroy_qp_rings(rings); - return rc; + goto out; } resp->max_send_wr = cmd->max_send_wr; -- 2.39.5