powerpc: Remove alloc_maybe_bootmem for zalloc version
authorMilton Miller <miltonm@bga.com>
Tue, 10 May 2011 19:29:24 +0000 (19:29 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 19 May 2011 05:30:57 +0000 (15:30 +1000)
commita56555e573d3740d588d912aada506d57759cf5d
tree1f1c44ec8f60cc68f6fd79e3c6c54db2aee02c4c
parent7ca8aa0924712de81485c70e00bbea8c092a08c1
powerpc: Remove alloc_maybe_bootmem for zalloc version

Replace all remaining callers of alloc_maybe_bootmem with
zalloc_maybe_bootmem.   The callsite in pci_dn is followed with a
memset to clear the memory, and not zeroing at the other callsites
in the celleb fake pci code could lead to following uninitialized
memory as pointers or even freeing said pointers on error paths.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/system.h
arch/powerpc/kernel/pci_dn.c
arch/powerpc/lib/alloc.c
arch/powerpc/platforms/cell/celleb_pci.c