Commit 4a794a626d6442d66ba32dc4931ea0f336dd87fc
Committed by
Anthony Liguori
1 parent
79d5ca56
e1000: Do not reinit pci config space to 0
pci_register_device already mallocs the pci config space buffer filled with zeroes. Doing this again breaks some default config space writes like setting the subsystem vendor id and subsystem device id. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing
1 changed file
with
0 additions
and
1 deletions
hw/e1000.c
... | ... | @@ -1067,7 +1067,6 @@ pci_e1000_init(PCIBus *bus, NICInfo *nd, int devfn) |
1067 | 1067 | return NULL; |
1068 | 1068 | |
1069 | 1069 | pci_conf = d->dev.config; |
1070 | - memset(pci_conf, 0, 256); | |
1071 | 1070 | |
1072 | 1071 | pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL); |
1073 | 1072 | pci_config_set_device_id(pci_conf, E1000_DEVID); | ... | ... |