Skip to content

Commit

Permalink
s390/lib,uaccess: fix copy_in_user_mvcos() inline asm clobber list
Browse files Browse the repository at this point in the history
General register 0 is clobbered within the inline assembly and
therefore must be listed in the clobber list.

Fixes:  d1e18ef ("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>
  • Loading branch information
Heiko Carstens authored and Vasily Gorbik committed Jul 5, 2021
1 parent 85b18d7 commit 07f3a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/lib/uaccess.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 07f3a35

Please sign in to comment.