netfilter: xt_osf: fix xt_osf_remove_callback() return value
authorPatrick McHardy <kaber@trash.net>
Thu, 19 Nov 2009 04:59:03 +0000 (04:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Nov 2009 21:16:26 +0000 (13:16 -0800)
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>
net/netfilter/xt_osf.c

index 63e1905..4d1a41b 100644 (file)
@@ -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;