sparc64: Handle 32-bit tasks properly in compute_effective_address().
authorDavid S. Miller <davem@davemloft.net>
Tue, 29 Apr 2014 06:50:08 +0000 (23:50 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Aug 2014 00:42:36 +0000 (08:42 +0800)
commitd2671e681d044d236c7a39b8c4b718216f2261df
tree56243b8531ec84024d41b1bbb641709be56a36b6
parent4fdf73fb4a781e9b74e540d251a533fa7b2af8df
sparc64: Handle 32-bit tasks properly in compute_effective_address().

[ Upstream commit d037d16372bbe4d580342bebbb8826821ad9edf0 ]

If we have a 32-bit task we must chop off the top 32-bits of the
64-bit value just as the cpu would.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/kernel/unaligned_64.c