summaryrefslogtreecommitdiffstats
path: root/arch/s390/lib
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2021-06-28 23:55:53 +0200
committerVasily Gorbik <gor@linux.ibm.com>2021-07-05 12:44:23 +0200
commit07f3a35df190082867fa302e46cab86d7a968ff3 (patch)
tree9bf4f8f88c50b8ab5243e8d366804af540b9cdb0 /arch/s390/lib
parent85b18d7b5e7ffefb2f076186511d39c4990aa005 (diff)
downloadlinux-07f3a35df190082867fa302e46cab86d7a968ff3.tar.gz
linux-07f3a35df190082867fa302e46cab86d7a968ff3.tar.bz2
linux-07f3a35df190082867fa302e46cab86d7a968ff3.zip
s390/lib,uaccess: fix copy_in_user_mvcos() inline asm clobber list
General register 0 is clobbered within the inline assembly and therefore must be listed in the clobber list. Fixes: d1e18efa8fa9 ("s390/lib,uaccess: get rid of register asm") Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/lib')
-rw-r--r--arch/s390/lib/uaccess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/lib/uaccess.c b/arch/s390/lib/uaccess.c
index 67606d932825..7ec8b1fa0f08 100644
--- a/arch/s390/lib/uaccess.c
+++ b/arch/s390/lib/uaccess.c
@@ -224,7 +224,7 @@ static inline unsigned long copy_in_user_mvcos(void __user *to, const void __use
EX_TABLE(0b,3b)
: "+a" (size), "+a" (to), "+a" (from), "+a" (tmp1), "=a" (tmp2)
: [spec] "d" (0x810081UL)
- : "cc", "memory");
+ : "cc", "memory", "0");
return size;
}