PPC: fix segfault in signal handling code
commitbeb526b12134a6b6744125deec5a7fe24a8f92e3
authorSamuel Seay <lightningth@gmail.com>
Wed, 2 Jan 2013 10:53:46 +0000 (2 10:53 +0000)
committerAlexander Graf <agraf@suse.de>
Mon, 7 Jan 2013 16:37:09 +0000 (7 17:37 +0100)
tree3c49eb13f965e3308a841d39d4fa8b9e586efa3d
parent88a78d9093917096feffeba66802be27d0e64ead
PPC: fix segfault in signal handling code

Removed h2g() macro around the ka->_sa_handler due to the _sa_handler being a
guest memory address.

Changed the __put_user to put_user as it was attempting to put a value at the
stack address but the new address is a guest memory address, __put_user is
for host memory addresses.

Signed-off-by: Samuel Seay <LightningTH@GMail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[agraf: change subject line, reformat commit message]
Signed-off-by: Alexander Graf <agraf@suse.de>
linux-user/signal.c