[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH PULL 17/18] hw/pvrdma: Fix zero-initialization of re
From: |
Marcel Apfelbaum |
Subject: |
[Qemu-devel] [PATCH PULL 17/18] hw/pvrdma: Fix zero-initialization of resp in {query/modify}_qp |
Date: |
Sat, 16 Mar 2019 16:34:20 +0200 |
From: Kamal Heib <address@hidden>
Make sure to zero-initialize only the pvrdma_cmd_query_qp_resp and not
the whole pvrdma_cmd_resp for query_qp, in modify_qp the resp isn't used
so remove it.
Reviewed-by: Yuval Shaia <address@hidden>
Signed-off-by: Kamal Heib <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Marcel Apfelbaum <address@hidden>
---
hw/rdma/vmw/pvrdma_cmd.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/hw/rdma/vmw/pvrdma_cmd.c b/hw/rdma/vmw/pvrdma_cmd.c
index b682e919d5..be8c2b61c9 100644
--- a/hw/rdma/vmw/pvrdma_cmd.c
+++ b/hw/rdma/vmw/pvrdma_cmd.c
@@ -488,8 +488,6 @@ static int modify_qp(PVRDMADev *dev, union pvrdma_cmd_req
*req,
struct pvrdma_cmd_modify_qp *cmd = &req->modify_qp;
int rc;
- memset(rsp, 0, sizeof(*rsp));
-
/* No need to verify sgid_index since it is u8 */
rc = rdma_rm_modify_qp(&dev->rdma_dev_res, &dev->backend_dev,
@@ -512,7 +510,7 @@ static int query_qp(PVRDMADev *dev, union pvrdma_cmd_req
*req,
struct ibv_qp_init_attr init_attr;
int rc;
- memset(rsp, 0, sizeof(*rsp));
+ memset(resp, 0, sizeof(*resp));
rc = rdma_rm_query_qp(&dev->rdma_dev_res, &dev->backend_dev,
cmd->qp_handle,
(struct ibv_qp_attr *)&resp->attrs, cmd->attr_mask,
--
2.17.1
- [Qemu-devel] [PATCH PULL 05/18] hw/pvrdma: Collect debugging statistics, (continued)
- [Qemu-devel] [PATCH PULL 05/18] hw/pvrdma: Collect debugging statistics, Marcel Apfelbaum, 2019/03/16
- [Qemu-devel] [PATCH PULL 07/18] hw/rdma: Free all MAD receive buffers when device is closed, Marcel Apfelbaum, 2019/03/16
- [Qemu-devel] [PATCH PULL 10/18] hw/pvrdma: Delete pvrdma_exit function, Marcel Apfelbaum, 2019/03/16
- [Qemu-devel] [PATCH PULL 11/18] hw/pvrdma: Unregister from shutdown notifier when device goes down, Marcel Apfelbaum, 2019/03/16
- [Qemu-devel] [PATCH PULL 09/18] hw/pvrdma: Delete unneeded function argument, Marcel Apfelbaum, 2019/03/16
- [Qemu-devel] [PATCH PULL 08/18] hw/rdma: Free all receive buffers when QP is destroyed, Marcel Apfelbaum, 2019/03/16
- [Qemu-devel] [PATCH PULL 12/18] hw/pvrdma: Provide correct value to object_get_typename, Marcel Apfelbaum, 2019/03/16
- [Qemu-devel] [PATCH PULL 14/18] hw/rdma: Fix broken paths to docs/devel/tracing.txt, Marcel Apfelbaum, 2019/03/16
- [Qemu-devel] [PATCH PULL 16/18] hw/rdma: Use {} instead of {0}, Marcel Apfelbaum, 2019/03/16
- [Qemu-devel] [PATCH PULL 18/18] hw/rdma: Fix the error prints in create_qp_rings(), Marcel Apfelbaum, 2019/03/16
- [Qemu-devel] [PATCH PULL 17/18] hw/pvrdma: Fix zero-initialization of resp in {query/modify}_qp,
Marcel Apfelbaum <=
- [Qemu-devel] [PATCH PULL 15/18] hw/rdma: Remove unused parameter from rdma_poll_cq(), Marcel Apfelbaum, 2019/03/16
- [Qemu-devel] [PATCH PULL 13/18] hw/rdma: another clang compilation fix, Marcel Apfelbaum, 2019/03/16
- [Qemu-devel] [PATCH PULL 02/18] hw/rdma: Switch to generic error reporting way, Marcel Apfelbaum, 2019/03/16
- [Qemu-devel] [PATCH PULL 06/18] {hmp, hw/pvrdma}: Expose device internals via monitor interface, Marcel Apfelbaum, 2019/03/16
- Re: [Qemu-devel] [PATCH PULL 00/18] RDMA queue, Peter Maydell, 2019/03/17