]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tile: use si_int instead of si_ptr for compat_siginfo
authorChris Metcalf <cmetcalf@ezchip.com>
Mon, 16 Mar 2015 19:04:05 +0000 (15:04 -0400)
committerChris Metcalf <cmetcalf@ezchip.com>
Mon, 16 Mar 2015 19:04:05 +0000 (15:04 -0400)
commitf3de87853f519bbc5861cad2df4da73c46241ea3
tree3dfb4e386a661a4a0b7b41244d7cba36b88f4748
parentc517d838eb7d07bbe9507871fab3931deccff539
tile: use si_int instead of si_ptr for compat_siginfo

To be compatible with the generic get_compat_sigevent(), the
copy_siginfo_to_user32() and thus copy_siginfo_from_user32()
have to use si_int instead of si_ptr.  Using si_ptr means that
for the case of ILP32 compat code running in big-endian mode,
we would end up copying the high 32 bits of the pointer value
into si_int instead of the desired low 32 bits.

Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
arch/tile/kernel/compat_signal.c