summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/netfilter/ipset/ip_set_counter.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-08-24 17:49:55 +0300
committerJozsef Kadlecsik <kadlec@netfilter.org>2019-08-27 20:20:14 +0200
commit7d9883dcdd90f09b8c0fb82781e74f1755966d3e (patch)
tree020dd1a7f7227d50022bba1c7701d259a1c9b626 /kernel/include/linux/netfilter/ipset/ip_set_counter.h
parentb57ed2b171da53550e1b2068ca4a007d95b5e868 (diff)
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 'kernel/include/linux/netfilter/ipset/ip_set_counter.h')
0 files changed, 0 insertions, 0 deletions