diff options
| author | Dan Carpenter <[email protected]> | 2014-05-03 23:18:11 +0300 |
|---|---|---|
| committer | Christian Borntraeger <[email protected]> | 2014-05-06 14:57:59 +0200 |
| commit | fcc9aec3de0a1d00cbce47f7274ec0c62122266b (patch) | |
| tree | 2dd17d25be679f006f3ecad0eccab57fc376db94 /lib/string_helpers.c | |
| parent | 57b5981cd38cbca3554c5e663b2361d9adea70c2 (diff) | |
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 <[email protected]>
Signed-off-by: Christian Borntraeger <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions