diff options
author | Adit Ranadive <aditr@vmware.com> | 2017-01-19 13:20:39 -0800 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-01-24 14:15:28 -0500 |
commit | 7d211c81e97ef8505610ef82e14e302ab415bad1 (patch) | |
tree | 03d04c8ee96b50139f5fc9c639a26d9f85835477 /drivers/infiniband/hw/vmw_pvrdma | |
parent | b1a27eac7fefff33ccf6acc919fc0725bf9815fb (diff) | |
download | blackbird-op-linux-7d211c81e97ef8505610ef82e14e302ab415bad1.tar.gz blackbird-op-linux-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')
-rw-r--r-- | drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c | 2 |
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; |