]> git.proxmox.com Git - mirror_qemu.git/commit - hw/rdma/vmw/pvrdma_qp_ops.c
hw/rdma: Fix possible usage of a NULL pointer
authorMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Mon, 30 Apr 2018 20:02:18 +0000 (23:02 +0300)
committerMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Thu, 3 May 2018 17:52:29 +0000 (20:52 +0300)
commitb0197cf80a903aa1e401cc7ebdf8be8bc307297b
tree0272945b6f0dbc5cb45fafc7bd8b12fba9227c6e
parent1bad4957c8c4d5367961cb3d5287b2f25a1d6847
hw/rdma: Fix possible usage of a NULL pointer

Coverity CID 1390586; The cq handle is provided by the guest
and cannot be trusted to be previuosly allocated.
Fix it by exiting the completion flow.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Message-Id: <20180430200223.4119-3-marcel.apfelbaum@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/rdma/vmw/pvrdma_qp_ops.c