Skip to contentSkip to conversation

Replacing alloc_pages(gfp,0) with alloc_page(gfp) in net/core/skbuff.c

PATCH New Shani Moideen 1 participant 1 message Jun 13, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Replacing alloc_pages(gfp,0) with alloc_page(gfp) in net/core/skbuff.c

Replacing alloc_pages(gfp,0) with alloc_page(gfp)
in net/core/skbuff.c

----

net/core/skbuff.c +1 -1
index 1422573..b923181 100644
@@ -1805,7 +1805,7 @@ int skb_append_datato_frags(struct sock *sk, struct sk_buff *skb,
 			return -EFAULT;
 
 		/* allocate a new page for next frag */
-		page = alloc_pages(sk->sk_allocation, 0);
+		page = alloc_page(sk->sk_allocation);
 
 		/* If alloc_page fails just return failure and caller will
 		 * free previous allocated pages by doing kfree_skb()
Signature · 1 line
Shani