aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-11-13 09:31:35 +0100
committerPatrick McHardy <kaber@trash.net>2009-11-13 09:31:35 +0100
commit1c622ae67bfc729891f5cd80795b15b87e6ac471 (patch)
tree499484792bf2bc84b204732f88a373755840742e
parentiwlwifi: Fix issue on file transfer stalled in HT mode (diff)
downloadlinux-dev-1c622ae67bfc729891f5cd80795b15b87e6ac471.tar.xz
linux-dev-1c622ae67bfc729891f5cd80795b15b87e6ac471.zip
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>
-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 63e190504656..4d1a41bbd5d7 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;