summaryrefslogtreecommitdiffstats
path: root/net/netrom/nr_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/netrom/nr_dev.c')
-rw-r--r--net/netrom/nr_dev.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/net/netrom/nr_dev.c b/net/netrom/nr_dev.c
index 380ec8ecc..b04adbcaa 100644
--- a/net/netrom/nr_dev.c
+++ b/net/netrom/nr_dev.c
@@ -121,7 +121,10 @@ static int nr_rebuild_header(struct sk_buff *skb)
unsigned char *bp = skb->data;
if (arp_find(bp + 7, skb)) {
- kfree_skb(skb, FREE_WRITE);
+#if 0
+ /* BUGGGG! If arp_find returned 1, skb does not exist. --ANK*/
+ kfree_skb(skb);
+#endif
return 1;
}
@@ -135,17 +138,17 @@ static int nr_rebuild_header(struct sk_buff *skb)
bp[6] |= AX25_SSSID_SPARE;
if ((skbn = skb_clone(skb, GFP_ATOMIC)) == NULL) {
- kfree_skb(skb, FREE_WRITE);
+ kfree_skb(skb);
return 1;
}
if (skb->sk != NULL)
skb_set_owner_w(skbn, skb->sk);
- kfree_skb(skb, FREE_WRITE);
+ kfree_skb(skb);
if (!nr_route_frame(skbn, NULL)) {
- kfree_skb(skbn, FREE_WRITE);
+ kfree_skb(skbn);
stats->tx_errors++;
}
@@ -216,7 +219,7 @@ static int nr_xmit(struct sk_buff *skb, struct device *dev)
sti();
- kfree_skb(skb, FREE_WRITE);
+ kfree_skb(skb);
stats->tx_errors++;