linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / arch / arm / kernel / bios32.c
index de606df..c4923fa 100644 (file)
@@ -540,10 +540,12 @@ static void __init pcibios_init_hw(struct hw_pci *hw)
        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;