From: Heiko Carstens Date: Wed, 9 Apr 2014 07:42:58 +0000 (+0200) Subject: s390/uaccess: fix possible register corruption in strnlen_user_srst() X-Git-Tag: omap-for-v3.16/pm-signed~104^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa255f51c95fd91b4d7bb50a0fdcca18dd47db21;p=pandora-kernel.git s390/uaccess: fix possible register corruption in strnlen_user_srst() 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 Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed