git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
arch
/
arm
/
kernel
/
bios32.c
diff --git
a/arch/arm/kernel/bios32.c
b/arch/arm/kernel/bios32.c
index
de606df
..
c4923fa
100644
(file)
--- a/
arch/arm/kernel/bios32.c
+++ b/
arch/arm/kernel/bios32.c
@@
-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++) {
int nr, busnr;
for (nr = busnr = 0; nr < hw->nr_controllers; nr++) {
- sys = k
z
alloc(sizeof(struct pci_sys_data), GFP_KERNEL);
+ sys = k
m
alloc(sizeof(struct pci_sys_data), GFP_KERNEL);
if (!sys)
panic("PCI: unable to allocate sys data!");
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;
sys->hw = hw;
sys->busnr = busnr;
sys->swizzle = hw->swizzle;