Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d667b9cf authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

netfilter: xt_osf: fix xt_osf_remove_callback() return value



Return a negative error value.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2b1c8b0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;