Dave Kleikamp 1535bd8adb 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>
2014-03-17 15:54:52 -04:00
..
2008-12-04 09:17:15 -08:00
2013-02-17 23:36:56 -05:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2012-05-11 19:27:46 -07:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2012-07-26 16:46:15 -07:00
2008-12-04 09:17:21 -08:00
2012-05-27 23:52:44 -07:00
2012-05-14 14:05:09 -07:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2013-02-20 13:36:50 -08:00
2013-12-03 11:51:51 -05:00
2013-11-12 15:22:34 -08:00
2013-10-02 20:02:35 -04:00
2008-12-04 09:17:21 -08:00
2013-11-13 12:09:05 +09:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2012-08-18 23:26:19 -07:00
2013-02-17 23:36:56 -05:00
2013-06-13 22:12:14 +01:00
2012-03-28 18:30:03 +01:00
2013-07-31 19:10:03 -07:00
2013-02-14 09:21:16 -05:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00