diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-08-24 17:49:55 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-12 19:13:21 +0100 |
| commit | 119f371c0936b1182ef75978be09a145f9d36b56 (patch) | |
| tree | 2260d721afcd2f212bd0ee01c5a42b96ec790c8a /include/linux | |
| parent | b10f57eb8982c4601d7e830c5490d98ebe3c775f (diff) | |
netfilter: ipset: Fix an error code in ip_set_sockfn_get()
commit 30b7244d79651460ff114ba8f7987ed94c86b99a upstream.
The copy_to_user() function returns the number of bytes remaining to be
copied. In this code, that positive return is checked at the end of the
function and we return zero/success. What we should do instead is
return -EFAULT.
Fixes: a7b4f989a629 ("netfilter: ipset: IP set core support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
