diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-03-11 17:47:20 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-03-11 17:47:20 -0500 |
commit | d7fc3ca1cd0ecce82263299c6b1631fc83b0ec79 (patch) | |
tree | a6471779a25cf2794542f9441213f5aa5f337f2f /arch/s390/lib/uaccess64.S | |
parent | fbfda6e71bbdd3b4d41a56c3f20f31762c455a5e (diff) | |
parent | ed62178589929d248a0aaf4018ca3867e2f96d9d (diff) |
Merge branch 'master'
Diffstat (limited to 'arch/s390/lib/uaccess64.S')
-rw-r--r-- | arch/s390/lib/uaccess64.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/s390/lib/uaccess64.S b/arch/s390/lib/uaccess64.S index 50219786fc7..19b41a33c23 100644 --- a/arch/s390/lib/uaccess64.S +++ b/arch/s390/lib/uaccess64.S @@ -194,12 +194,12 @@ __strnlen_user_asm: 0: srst %r2,%r1 jo 0b sacf 0 - jh 1f # \0 found in string ? aghi %r2,1 # strnlen_user result includes the \0 -1: slgr %r2,%r3 + # or return count+1 if \0 not found + slgr %r2,%r3 br %r14 2: sacf 0 - lghi %r2,-EFAULT + slgr %r2,%r2 # return 0 on exception br %r14 .section __ex_table,"a" .quad 0b,2b |