Fix hw/rdma/vmw/pvrdma_cmd.c build
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
@@ -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
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".
Signed-off-by Stephen Kitt <[email protected]>--- hw/rdma/vmw/pvrdma_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/rdma/vmw/pvrdma_cmd.c +0
-0
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
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".
Signed-off-by Stephen Kitt <[email protected]>--- 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@@ -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
Yuval Shaia
Reviewed-byQuoted 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".
Signed-off-by Stephen Kitt <[email protected]>--- 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@@ -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
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".
Signed-off-by Stephen Kitt <[email protected]>--- hw/rdma/vmw/pvrdma_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/rdma/vmw/pvrdma_cmd.c +0
-0hw/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.
Reviewed-by Yuval Shaia <[email protected]>Quoted 4 lines
Regards,
Stephen