patch-2.1.86 linux/net/netbeui/af_netbeui.c

Next file: linux/net/netbeui/netbeui_llc.c
Previous file: linux/net/lapb/lapb_subr.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.85/linux/net/netbeui/af_netbeui.c linux/net/netbeui/af_netbeui.c
@@ -414,7 +414,7 @@
 	err = memcpy_fromiovec(skb_put(skb,len),msg->msg_iov,len);
 	if (err)
 	{
-		kfree_skb(skb, FREE_WRITE);
+		kfree_skb(skb);
 		return -EFAULT;
 	}
 
@@ -422,14 +422,14 @@
 
 	if(call_out_firewall(AF_NETBEUI, skb->dev, nbp, NULL)!=FW_ACCEPT)
 	{
-		kfree_skb(skb, FREE_WRITE);
+		kfree_skb(skb);
 		return -EPERM;
 	}
 
 #endif
 
 	if(nb_send_low(dev,skb,&usat->sat_addr, NULL)==-1)
-		kfree_skb(skb, FREE_WRITE);
+		kfree_skb(skb);
 	SOCK_DEBUG(sk, "SK %p: Done write (%d).\n", sk, len);
 	return len;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov