KVM: s390: return -EFAULT if copy_from_user() fails
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 3 May 2014 20:18:11 +0000 (23:18 +0300)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 6 May 2014 12:57:59 +0000 (14:57 +0200)
commitfcc9aec3de0a1d00cbce47f7274ec0c62122266b
tree2dd17d25be679f006f3ecad0eccab57fc376db94
parent57b5981cd38cbca3554c5e663b2361d9adea70c2
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 <dan.carpenter@oracle.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/guestdbg.c