android_kernel_google_msm/arch/sparc
Dave Kleikamp 036132b3be sparc64: don't treat 64-bit syscall return codes as 32-bit
[ Upstream commit 1535bd8adb ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-26 17:13:19 -07:00
..
boot Kbuild: centralize MKIMAGE and cmd_uimage definitions 2012-03-26 15:49:20 +02:00
configs
include/asm Revert "sparc64: Fix __copy_{to,from}_user_inatomic defines." 2014-04-26 17:13:19 -07:00
kernel sparc64: don't treat 64-bit syscall return codes as 32-bit 2014-04-26 17:13:19 -07:00
lib sparc64: Remove RWSEM export leftovers 2013-10-13 15:42:49 -07:00
math-emu Disintegrate asm/system.h for Sparc 2012-03-28 18:30:03 +01:00
mm sparc: tsb must be flushed before tlb 2013-07-28 16:25:52 -07:00
oprofile
prom Disintegrate asm/system.h for Sparc 2012-03-28 18:30:03 +01:00
Kconfig sparc32: fix build failure for arch_jump_label_transform 2014-04-26 17:13:19 -07:00
Kconfig.debug lib: consolidate DEBUG_STACK_USAGE option 2011-05-25 08:39:54 -07:00
Makefile sparc32: Add -Av8 to assembler command line. 2012-03-13 18:19:51 -07:00