Skip to content

Commit

Permalink
[S390] compat: fix truncate system call wrapper
Browse files Browse the repository at this point in the history
The system call takes a signed length parameter. So perform sign
extension instead of zero extension.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Oct 6, 2009
1 parent 0cd6a40 commit 593c4f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/kernel/compat_wrapper.S
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ sys32_munmap_wrapper:
.globl sys32_truncate_wrapper
sys32_truncate_wrapper:
llgtr %r2,%r2 # const char *
llgfr %r3,%r3 # unsigned long
lgfr %r3,%r3 # long
jg sys_truncate # branch to system call

.globl sys32_ftruncate_wrapper
Expand Down

0 comments on commit 593c4f7

Please sign in to comment.