X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=arch%2Farm%2Fmach-iop13xx%2Fpci.c;h=99d94cb1bafdc6818e96d4edc6bc64fbeb152a71;hb=2d79ab8fd7a7bf3a45d0e948ae27b3dd95ce95ea;hp=9d63d7f260ca5e1150513249d8b917ac4fdf041c;hpb=c71cd01989b417317f4d22ccf4ce112859671b64;p=~andy%2Flinux diff --git a/arch/arm/mach-iop13xx/pci.c b/arch/arm/mach-iop13xx/pci.c index 9d63d7f260c..99d94cb1baf 100644 --- a/arch/arm/mach-iop13xx/pci.c +++ b/arch/arm/mach-iop13xx/pci.c @@ -1002,11 +1002,10 @@ int iop13xx_pci_setup(int nr, struct pci_sys_data *sys) if (nr > 1) return 0; - res = kmalloc(sizeof(struct resource) * 2, GFP_KERNEL); + res = kcalloc(2, sizeof(struct resource), GFP_KERNEL); if (!res) panic("PCI: unable to alloc resources"); - memset(res, 0, sizeof(struct resource) * 2); /* 'nr' assumptions: * ATUX is always 0