[IA64] panic if topology_init kzalloc fails
commita813213d73bb29d6986c3e93669a9cd5f7984364
authorPaul Jackson <pj@sgi.com>
Tue, 15 Aug 2006 05:45:49 +0000 (14 22:45 -0700)
committerTony Luck <tony.luck@intel.com>
Thu, 24 Aug 2006 15:29:24 +0000 (24 08:29 -0700)
treeeaeb242ce68a6467d6c740d1c62d2f3945e5be25
parent7682a4c624e0011b5f3e8dd3021dc54961260d97
[IA64] panic if topology_init kzalloc fails

There really is no sense trying to continue if the kzalloc of sysfs_cpus[]
fails in ia64 topology_init.  The code calling into here doesn't check
errors very well, and one ends up with a nonobvious boot failure that
wastes peoples time debugging.

See for example the lkml thread at:
  http://lkml.org/lkml/2006/3/2/215

Since the system is totally dead when this kzalloc fails, not having yet
even booted, might as well announce one's death boldly and plainly.

Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/topology.c