aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
diff options
context:
space:
mode:
authorAdit Ranadive <aditr@vmware.com>2017-01-19 13:20:39 -0800
committerDoug Ledford <dledford@redhat.com>2017-01-24 14:15:28 -0500
commit7d211c81e97ef8505610ef82e14e302ab415bad1 (patch)
tree03d04c8ee96b50139f5fc9c639a26d9f85835477 /drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
parentIB/cxgb3: fix misspelling in header guard (diff)
downloadlinux-dev-7d211c81e97ef8505610ef82e14e302ab415bad1.tar.xz
linux-dev-7d211c81e97ef8505610ef82e14e302ab415bad1.zip
IB/vmw_pvrdma: Don't leak info from alloc_ucontext
Clear out the user response struct correctly. Fixes: 29c8d9eba550 ("IB: Add vmw_pvrdma driver") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Adit Ranadive <aditr@vmware.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c')
-rw-r--r--drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
index 54891370d18a..c2aa52638dcb 100644
--- a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
+++ b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
@@ -306,7 +306,7 @@ struct ib_ucontext *pvrdma_alloc_ucontext(struct ib_device *ibdev,
union pvrdma_cmd_resp rsp;
struct pvrdma_cmd_create_uc *cmd = &req.create_uc;
struct pvrdma_cmd_create_uc_resp *resp = &rsp.create_uc_resp;
- struct pvrdma_alloc_ucontext_resp uresp;
+ struct pvrdma_alloc_ucontext_resp uresp = {0};
int ret;
void *ptr;