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:
parent
371542780d
commit
74e8445003
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ void pci_header_get(uint32_t controller,
|
|||
|
||||
/* 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 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue