kfree_skb() no. of args in .86

Erik Elmgren (erik.elmgren@swipnet.se)
Wed, 11 Feb 1998 07:16:53 +0100


--gW1X5XWziG23KoHG
Content-Type: text/plain; charset=us-ascii

Needs this to _compile_ on my box..

--gW1X5XWziG23KoHG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="kfree_skb().patch"

--- net/ipv4/devinet.c.orig Wed Jan 14 20:51:21 1998
+++ net/ipv4/devinet.c Wed Feb 11 06:49:06 1998
@@ -784,7 +784,7 @@
return;
}
if (inet_fill_ifaddr(skb, ifa, 0, 0, event) < 0) {
- kfree_skb(skb, 0);
+ kfree_skb(skb);
netlink_set_err(rtnl, 0, RTMGRP_IPV4_IFADDR, EINVAL);
return;
}

--- net/ipv4/fib_hash.c.orig Sun Nov 30 23:00:39 1997
+++ net/ipv4/fib_hash.c Wed Feb 11 06:54:38 1998
@@ -715,7 +715,7 @@
if (fib_dump_info(skb, pid, n->nlmsg_seq, event, tb_id,
f->fn_type, f->fn_scope, &f->fn_key, z, f->fn_tos,
FIB_INFO(f)) < 0) {
- kfree_skb(skb, 0);
+ kfree_skb(skb);
return;
}
NETLINK_CB(skb).dst_groups = RTMGRP_IPV4_ROUTE;

--- net/netlink/af_netlink.c.orig Wed Jan 14 20:51:22 1998
+++ net/netlink/af_netlink.c Wed Feb 11 07:00:09 1998
@@ -370,7 +370,7 @@
if (nonblock) {
sti();
netlink_unlock(sk);
- kfree_skb(skb, 0);
+ kfree_skb(skb);
return -EAGAIN;
}
interruptible_sleep_on(sk->sleep);
@@ -378,7 +378,7 @@
sti();

if (signal_pending(current)) {
- kfree_skb(skb, 0);
+ kfree_skb(skb);
return -ERESTARTSYS;
}
goto retry;
@@ -392,7 +392,7 @@
netlink_unlock(sk);
return len;
}
- kfree_skb(skb, 0);
+ kfree_skb(skb);
return -ECONNREFUSED;
}

@@ -466,8 +466,8 @@
netlink_unlock_table(protocol, allocation == GFP_KERNEL);

if (skb2)
- kfree_skb(skb2, 0);
- kfree_skb(skb, 0);
+ kfree_skb(skb2);
+ kfree_skb(skb);
}

void netlink_set_err(struct sock *ssk, pid_t pid, unsigned group, int code)
@@ -630,7 +630,7 @@
static void netlink_destroy_callback(struct netlink_callback *cb)
{
if (cb->skb)
- kfree_skb(cb->skb, 0);
+ kfree_skb(cb->skb);
kfree(cb);
}

--gW1X5XWziG23KoHG--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu