Skip to contentSkip to conversation

Fix hw/rdma/vmw/pvrdma_cmd.c build

PATCH In review Stephen Kitt 3 participants 5 messages Aug 11, 2019 – Aug 18, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix hw/rdma/vmw/pvrdma_cmd.c build

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".

---
 hw/rdma/vmw/pvrdma_cmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/rdma/vmw/pvrdma_cmd.c +1 -1
index bb9a9f1cd1..a3a86d7c8e 100644
@@ -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;
Signature · 1 line
2.20.1
#1 lore raw
Quoted 13 lines · 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".

---
 hw/rdma/vmw/pvrdma_cmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/rdma/vmw/pvrdma_cmd.c +0 -0
index bb9a9f1cd1..a3a86d7c8e 100644

hw/rdma/vmw/pvrdma_cmd.c static int create_qp(PVRDMADev *dev, union pvrdma_cmd_req *req, · line 517

Quoted 5 lines
hw/rdma/vmw/pvrdma_cmd.c +1 -1
@@ -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;

This label was removed, can you please check master branch?

Quoted 7 lines
hw/rdma/vmw/pvrdma_cmd.c +0 -0
     }
 
     resp->max_send_wr = cmd->max_send_wr;
Signature · 1 line
2.20.1
#2 lore raw
Quoted 9 lines · Yuval Shaia
Quoted 8 lines · 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".

---
 hw/rdma/vmw/pvrdma_cmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 12 lines

hw/rdma/vmw/pvrdma_cmd.c static int create_qp(PVRDMADev *dev, union · line 517

Quoted 10 lines
hw/rdma/vmw/pvrdma_cmd.c +1 -1
index bb9a9f1cd1..a3a86d7c8e 100644
@@ -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;  

This label was removed, can you please check master branch?

Sorry, it wasn’t clear from my message — my patch is against the stable-3.1 branch.

Regards,

Stephen

Reviewed-by
#3 lore raw
Quoted 25 lines · Stephen Kitt
Quoted 9 lines · Yuval Shaia
Quoted 8 lines · 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".

---
 hw/rdma/vmw/pvrdma_cmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 12 lines

hw/rdma/vmw/pvrdma_cmd.c static int create_qp(PVRDMADev *dev, union · line 517

Quoted 10 lines
hw/rdma/vmw/pvrdma_cmd.c +1 -1
index bb9a9f1cd1..a3a86d7c8e 100644
@@ -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;  

This label was removed, can you please check master branch?

Quoted 2 lines

Sorry, it wasn’t clear from my message — my patch is against the stable-3.1 branch.

I see, in that case fix make sense.

Quoted 4 lines

Regards,

Stephen

#4 lore raw
Quoted 26 lines · Yuval Shaia
Quoted 25 lines · Stephen Kitt
Quoted 21 lines · Yuval Shaia
Quoted 13 lines · 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".

---
 hw/rdma/vmw/pvrdma_cmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/rdma/vmw/pvrdma_cmd.c +0 -0
index bb9a9f1cd1..a3a86d7c8e 100644

hw/rdma/vmw/pvrdma_cmd.c static int create_qp(PVRDMADev *dev, union · line 517

Quoted 5 lines
hw/rdma/vmw/pvrdma_cmd.c +1 -1
@@ -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;  

This label was removed, can you please check master branch?

Quoted 2 lines
Quoted 2 lines

Sorry, it wasn’t clear from my message — my patch is against the stable-3.1 branch.

You want to Cc then ;) Doing it for you.

Quoted 11 lines

I see, in that case fix make sense.

Quoted 4 lines

Regards,

Stephen