X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=OvmfPkg%2FVirtioScsiDxe%2FVirtioScsi.c;h=e773ecf7cc009dbe39056610cf93fd6704586420;hb=c455687fd0babe03a203b38c9a884c65198d8c1d;hp=1a68f062106c00132f1c9a32002fb52f1cee3820;hpb=bf99bdd1f7d442e23397ee40af1631be4924e71a;p=mirror_edk2.git diff --git a/OvmfPkg/VirtioScsiDxe/VirtioScsi.c b/OvmfPkg/VirtioScsiDxe/VirtioScsi.c index 1a68f06210..e773ecf7cc 100644 --- a/OvmfPkg/VirtioScsiDxe/VirtioScsi.c +++ b/OvmfPkg/VirtioScsiDxe/VirtioScsi.c @@ -26,7 +26,7 @@ unreasonable for now. Copyright (C) 2012, Red Hat, Inc. - Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved.
+ Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
Copyright (c) 2017, AMD Inc, All rights reserved.
This program and the accompanying materials are licensed and made available @@ -455,6 +455,15 @@ VirtioScsiPassThru ( UINTN InDataNumPages; BOOLEAN OutDataBufferIsMapped; + // + // Set InDataMapping,OutDataMapping,InDataDeviceAddress and OutDataDeviceAddress to + // suppress incorrect compiler/analyzer warnings. + // + InDataMapping = NULL; + OutDataMapping = NULL; + InDataDeviceAddress = 0; + OutDataDeviceAddress = 0; + ZeroMem ((VOID*) &Request, sizeof (Request)); Dev = VIRTIO_SCSI_FROM_PASS_THRU (This);