Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[S390] compat: fix truncate system call wrapper

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>

authored by

Heiko Carstens and committed by
Martin Schwidefsky
593c4f73 0cd6a403

+1 -1
+1 -1
arch/s390/kernel/compat_wrapper.S
··· 409 409 .globl sys32_truncate_wrapper 410 410 sys32_truncate_wrapper: 411 411 llgtr %r2,%r2 # const char * 412 - llgfr %r3,%r3 # unsigned long 412 + lgfr %r3,%r3 # long 413 413 jg sys_truncate # branch to system call 414 414 415 415 .globl sys32_ftruncate_wrapper