瀏覽代碼

[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>
Heiko Carstens 15 年之前
父節點
當前提交
593c4f7398
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/s390/kernel/compat_wrapper.S

+ 1 - 1
arch/s390/kernel/compat_wrapper.S

@@ -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