aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorBen Collins <ben.collins@ubuntu.com>2007-05-23 13:57:43 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-23 20:14:12 -0700
commit3c6df2a9177c010bf811c361149069e4bfd9bb11 (patch)
tree151ece2576e9e2481057bc0107aba8c0cc864384 /kernel/power
parentDocumentation: fix the explanation of Kconfig files (diff)
downloadlinux-dev-3c6df2a9177c010bf811c361149069e4bfd9bb11.tar.xz
linux-dev-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/power')
0 files changed, 0 insertions, 0 deletions