1
linux/arch
Ben Collins 3c6df2a917 Avoid zero size allocation in cache_k8_northbridges()
kmalloc for flush_words resulted in zero size allocation when no
k8_northbridges existed.  Short circuit the code path for this case.

Also remove uneeded zeroing of num_k8_northbridges just after checking if
it is zero.

Signed-off-by: Ben Collins <bcollins@ubuntu.com>
Cc: Andi Kleen <ak@suse.de>
Cc: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-23 20:14:12 -07:00
..
alpha all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
arm Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fix 2007-05-21 12:03:04 -07:00
arm26 all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
avr32 all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
blackfin Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fix 2007-05-21 12:03:04 -07:00
cris Fix trivial typos in Kconfig* files 2007-05-09 07:12:20 +02:00
frv all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
h8300 all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
i386 Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fix 2007-05-21 12:03:04 -07:00
ia64 Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6 2007-05-22 16:46:29 -07:00
m32r all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
m68k all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
m68knommu all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
mips Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fix 2007-05-21 12:03:04 -07:00
parisc Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fix 2007-05-21 12:03:04 -07:00
powerpc [POWERPC] Fix warning in 32-bit builds with CONFIG_HIGHMEM 2007-05-22 20:20:57 +10:00
ppc all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
s390 Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fix 2007-05-21 12:03:04 -07:00
sh Merge master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6 2007-05-22 17:26:18 -07:00
sh64 all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
sparc all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
sparc64 all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
um uml: improve PTRACE_SYSEMU checking 2007-05-23 20:14:12 -07:00
v850 all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
x86_64 Avoid zero size allocation in cache_k8_northbridges() 2007-05-23 20:14:12 -07:00
xtensa all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00