patch-2.4.0-test11 linux/net/decnet/dn_nsp_out.c

Next file: linux/net/decnet/dn_route.c
Previous file: linux/net/decnet/dn_nsp_in.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test10/linux/net/decnet/dn_nsp_out.c linux/net/decnet/dn_nsp_out.c
@@ -149,7 +149,7 @@
 			continue;
 		}
 
-		if ((skb = dn_alloc_skb(sk, len, GFP_KERNEL)) == NULL)
+		if ((skb = dn_alloc_skb(sk, len, sk->allocation)) == NULL)
 			continue;
 
 		*size = len - 11;
@@ -444,7 +444,7 @@
 	struct sk_buff *skb = NULL;
         struct nsp_conn_ack_msg *msg;
 
-	if ((skb = dn_alloc_skb(sk, 3, GFP_KERNEL)) == NULL)
+	if ((skb = dn_alloc_skb(sk, 3, sk->allocation)) == NULL)
 		return;
 
         msg = (struct nsp_conn_ack_msg *)skb_put(skb, 3);
@@ -626,7 +626,7 @@
 	struct dn_skb_cb *cb;
 	unsigned char type = 1;
 
-	if ((skb = dn_alloc_skb(sk, 200, (msgflg == NSP_CI) ? GFP_KERNEL : GFP_ATOMIC)) == NULL)
+	if ((skb = dn_alloc_skb(sk, 200, (msgflg == NSP_CI) ? sk->allocation : GFP_ATOMIC)) == NULL)
 		return;
 
 	cb  = (struct dn_skb_cb *)skb->cb;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)