summaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorBen Collins2007-05-23 22:57:43 +0200
committerLinus Torvalds2007-05-24 05:14:12 +0200
commit3c6df2a9177c010bf811c361149069e4bfd9bb11 (patch)
tree151ece2576e9e2481057bc0107aba8c0cc864384 /kernel/exit.c
parentDocumentation: fix the explanation of Kconfig files (diff)
downloadkernel-qcow2-linux-3c6df2a9177c010bf811c361149069e4bfd9bb11.tar.gz
kernel-qcow2-linux-3c6df2a9177c010bf811c361149069e4bfd9bb11.tar.xz
kernel-qcow2-linux-3c6df2a9177c010bf811c361149069e4bfd9bb11.zip
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>
Diffstat (limited to 'kernel/exit.c')
0 files changed, 0 insertions, 0 deletions