diff options
author | 2019-08-24 17:49:55 +0300 | |
---|---|---|
committer | 2019-11-04 20:45:29 +0100 | |
commit | 30b7244d79651460ff114ba8f7987ed94c86b99a (patch) | |
tree | 0de5edde505b40c670c873af96b35f03ab4e56bf /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'hv_netvsc-fix-error-handling-in-netvsc_attach-set_features' (diff) | |
download | wireguard-linux-30b7244d79651460ff114ba8f7987ed94c86b99a.tar.xz wireguard-linux-30b7244d79651460ff114ba8f7987ed94c86b99a.zip |
netfilter: ipset: Fix an error code in ip_set_sockfn_get()
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions