Skip to content
Commit fcc9aec3 authored by Dan Carpenter's avatar Dan Carpenter Committed by Christian Borntraeger
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
parent 57b5981c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment