qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix hw/rdma/vmw/pvrdma_cmd.c build
@ 2019-08-11 19:42 Stephen Kitt
  2019-08-15 10:57 ` Yuval Shaia
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Kitt @ 2019-08-11 19:42 UTC (permalink / raw)
  To: qemu-devel; +Cc: Stephen Kitt

This was broken by the cherry-pick in 41dd30f. Fix by handling errors
as in the rest of the function: "goto out" instead of "return rc".

Signed-off-by: Stephen Kitt <steve@sk2.org>
---
 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 bb9a9f1cd1..a3a86d7c8e 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.20.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-08-18 21:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-11 19:42 [Qemu-devel] [PATCH] Fix hw/rdma/vmw/pvrdma_cmd.c build Stephen Kitt
2019-08-15 10:57 ` Yuval Shaia
2019-08-15 12:12   ` Stephen Kitt
2019-08-18 12:28     ` Yuval Shaia
2019-08-18 21:50       ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).