pci: Fix PCI header initialization

The arguments to memset in pci_header_get were passed in the wrong
order, causing the memset to be a no-op. Fix this.

Change-Id: I1ea6d7d87d74cff6fec9bbc88c99a4b0e460cc95
Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Ido Yariv <ido@wizery.com>
This commit is contained in:
Shaul Triebitz 2016-02-23 12:04:50 +02:00 committed by Gerrit Code Review
commit 74e8445003

View file

@ -395,7 +395,7 @@ void pci_header_get(uint32_t controller,
/* clear out the header */ /* clear out the header */
memset((char *)pci_dev_header, sizeof(union pci_dev), 0); memset(pci_dev_header, 0, sizeof(*pci_dev_header));
/* fill in the PCI header from the device */ /* fill in the PCI header from the device */