um: segv: Save regs only in case of a kernel mode fault
authorRichard Weinberger <richard@nod.at>
Sun, 20 Jul 2014 11:39:27 +0000 (13:39 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 20 Jul 2014 11:39:27 +0000 (13:39 +0200)
commitbb6a1b2e189f797c0e4a116aec7ce77c344f11e0
treebb08672a820d4637be57d09cb6cf814b16c4da1f
parent468f65976a8d065ee1f27782337f4ee85a9151c5
um: segv: Save regs only in case of a kernel mode fault

...otherwise me lose user mode regs and the resulting
stack trace is useless.

Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/kernel/trap.c