]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Bus/Pci/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.c
MdeModulePkg/IncompPciDeviceSupport: Use correct descriptor length
authorRuiyu Ni <ruiyu.ni@intel.com>
Wed, 13 Jun 2018 08:53:17 +0000 (16:53 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Thu, 14 Jun 2018 08:38:15 +0000 (16:38 +0800)
commite03a460f061a860efc1cdcc486caefefc43973f6
tree250d975dcb5829356a13c663d25ab6c160fc61ea
parentb1aff264bf6a007a27d0ebadcce96b72b727c3c8
MdeModulePkg/IncompPciDeviceSupport: Use correct descriptor length

Per PI spec, the Length value is the length of the ACPI descriptor
in bytes, excluding the first two fields.
The patch fixes the code to report the correct descriptor length
by excluding 3-byte first two fields.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Bus/Pci/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.c