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 01:38:25 +0000 (09:38 +0800)
commitd5ad2c01bc531cc0e4310813d99211ff49c98c04
tree9be53674b2b007159c3c3562ce16b27507228441
parent83ad186cc68bd775e88d857be50c602d3de13eac
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