diff options
| author | 2017-06-23 13:15:44 +0300 | |
|---|---|---|
| committer | 2017-06-23 14:19:27 -0400 | |
| commit | ac55cd619335c577f29eea599a6a35b6b48797e8 (patch) | |
| tree | ee7e30c96b95f528ac7e5299f159d49a6b5490b4 /include/linux | |
| parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next (diff) | |
tls: return -EFAULT if copy_to_user() fails
The copy_to_user() function returns the number of bytes remaining but we
want to return -EFAULT here.
Fixes: 3c4d7559159b ("tls: kernel TLS support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Dave Watson <davejwatson@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
