int nr, busnr;
for (nr = busnr = 0; nr < hw->nr_controllers; nr++) {
- sys = kzalloc(sizeof(struct pci_sys_data), GFP_KERNEL);
+ sys = kmalloc(sizeof(struct pci_sys_data), GFP_KERNEL);
if (!sys)
panic("PCI: unable to allocate sys data!");
+ memset(sys, 0, sizeof(struct pci_sys_data));
+
sys->hw = hw;
sys->busnr = busnr;
sys->swizzle = hw->swizzle;