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
..
2007-04-26 14:32:03 -04:00
2007-05-11 05:38:25 -04:00
2007-05-07 12:12:59 -07:00
2007-05-09 12:30:56 -07:00
2006-12-08 08:28:39 -08:00
2007-05-02 19:27:06 +02:00
2007-05-02 19:27:06 +02:00
2007-05-02 19:27:06 +02:00
2007-05-21 09:18:19 -07:00
2007-05-08 11:14:58 -07:00
2007-05-08 11:15:22 -07:00
2007-05-21 09:56:57 -07:00