s390/uaccess: fix possible register corruption in strnlen_user_srst()
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 9 Apr 2014 07:42:58 +0000 (09:42 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 11 Apr 2014 11:53:33 +0000 (13:53 +0200)
The whole point of the out-of-line strnlen_user_srst() function was to
avoid corruption of register 0 due to register asm assignment.
However 'somebody' :) forgot to remove the update_primary_asce() function
call, which may clobber register 0 contents.
So let's remove that call and also move the size check to the calling
function.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

No differences found