mirror of https://github.com/proxmox/mirror_qemu
hw/pvrdma: Some cosmetic fixes
Signed-off-by: Yuval Shaia <yuval.shaia.ml@gmail.com> Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Message-Id: <20220403095837.2378-1-yuval.shaia.ml@gmail.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>master
parent
a1755db71e
commit
46c1ea0131
|
@ -249,7 +249,8 @@ static void init_dsr_dev_caps(PVRDMADev *dev)
|
||||||
{
|
{
|
||||||
struct pvrdma_device_shared_region *dsr;
|
struct pvrdma_device_shared_region *dsr;
|
||||||
|
|
||||||
if (dev->dsr_info.dsr == NULL) {
|
if (!dev->dsr_info.dsr) {
|
||||||
|
/* Buggy or malicious guest driver */
|
||||||
rdma_error_report("Can't initialized DSR");
|
rdma_error_report("Can't initialized DSR");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue