diff options
author | Dave Kleikamp <dave.kleikamp@oracle.com> | 2014-03-14 16:42:01 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-17 20:54:52 +0100 |
commit | 1535bd8adbdedd60a0ee62e28fd5225d66434371 (patch) | |
tree | 6797e19f2f4362fdaf5a38d95b87aba771a21b23 /arch/sparc/mm/tsb.c | |
parent | sparc: serial: Clean up the locking for -rt (diff) | |
download | linux-1535bd8adbdedd60a0ee62e28fd5225d66434371.tar.xz linux-1535bd8adbdedd60a0ee62e28fd5225d66434371.zip |
sparc64: don't treat 64-bit syscall return codes as 32-bit
When checking a system call return code for an error,
linux_sparc_syscall was sign-extending the lower 32-bit value and
comparing it to -ERESTART_RESTARTBLOCK. lseek can return valid return
codes whose lower 32-bits alone would indicate a failure (such as 4G-1).
Use the whole 64-bit value to check for errors. Only the 32-bit path
should sign extend the lower 32-bit value.
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Acked-by: Bob Picco <bob.picco@oracle.com>
Acked-by: Allen Pais <allen.pais@oracle.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm/tsb.c')
0 files changed, 0 insertions, 0 deletions