sparc64: Sign extend length arg to truncate syscalls when compat.
authorDavid S. Miller <davem@davemloft.net>
Tue, 28 Jul 2009 01:10:28 +0000 (18:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jul 2009 01:10:28 +0000 (18:10 -0700)
commit9a926d86b29a25456f1dd8c9df938e151b1c3978
treee718df684012799022e726ebdc007b1eab9cf77a
parent14d87e6c399f3942d63dff41447ff08a615d9a6b
sparc64: Sign extend length arg to truncate syscalls when compat.

The first thing sys_truncate() and sys_ftruncate() do is sign extend
the unsigned length arg to a signed type.

Thanks to Benjamin Herrenschmidt for the tip.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/sys32.S
arch/sparc/kernel/systbls_64.S