]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ebfa3e55c987255e02509d98a7d6a397a09239a
tree1f1c44ec8f60cc68f6fd79e3c6c54db2aee02c4c
parent6e919c1ec73eae658cfb06efb19a036ec1be20d7
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