summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2009-11-19 04:59:03 (GMT)
committerDavid S. Miller <davem@davemloft.net>2009-11-19 21:16:26 (GMT)
commitd667b9cfd09a2ca61f74a9edc73d08d2ad0d14da (patch)
tree4052d37435e9d46a29261151601a5d24dba059cb /net
parent2b1c8b0f925c3f5943cf95d263d72927baae88e7 (diff)
downloadlinux-d667b9cfd09a2ca61f74a9edc73d08d2ad0d14da.tar.xz
netfilter: xt_osf: fix xt_osf_remove_callback() return value
Return a negative error value. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/xt_osf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_osf.c b/net/netfilter/xt_osf.c
index 63e1905..4d1a41b 100644
--- a/net/netfilter/xt_osf.c
+++ b/net/netfilter/xt_osf.c
@@ -118,7 +118,7 @@ static int xt_osf_remove_callback(struct sock *ctnl, struct sk_buff *skb,
{
struct xt_osf_user_finger *f;
struct xt_osf_finger *sf;
- int err = ENOENT;
+ int err = -ENOENT;
if (!osf_attrs[OSF_ATTR_FINGER])
return -EINVAL;