From: Dan Carpenter Date: Sat, 3 May 2014 20:18:11 +0000 (+0300) Subject: KVM: s390: return -EFAULT if copy_from_user() fails X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~8^2~47^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcc9aec3de0a1d00cbce47f7274ec0c62122266b;p=pandora-kernel.git KVM: s390: return -EFAULT if copy_from_user() fails When copy_from_user() fails, this code returns the number of bytes remaining instead of a negative error code. The positive number is returned to the user but otherwise it is harmless. Signed-off-by: Dan Carpenter Signed-off-by: Christian Borntraeger --- Reading git-diff-tree failed