[PARISC] Fix show_stack() when we can't kmalloc
authorMatthew Wilcox <matthew@wil.cx>
Sat, 16 Dec 2006 05:47:47 +0000 (22:47 -0700)
committerKyle McMartin <kyle@athena.road.mcmartin.ca>
Sat, 17 Feb 2007 05:51:25 +0000 (00:51 -0500)
commit9f15c82686251cd2b97ac6859de62959d3c4afe1
tree6bacc1d1422fd9770d9b5f90417a804a8cad7ef1
parente6fc0449be45a0e7520da6a17a64520743b9aa20
[PARISC] Fix show_stack() when we can't kmalloc

show_stack() was calling kzalloc() to allocate a struct pt_regs.
This meant that *really* early stack dumps would cause a null pointer
dereference.  x86_64 allocates its pt_regs on the stack, so do the same.

Kyle actually committed this exact patch to CVS on
Wed Jul 26 14:32:39 2006 UTC, and never moved it across to git.
Bad Kyle.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
arch/parisc/kernel/traps.c