Skip to contentSkip to conversation

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

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

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

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

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

----

net/core/sock.c +1 -1
index 22183c2..25bb52b 100644
@@ -1193,7 +1193,7 @@ static struct sk_buff *sock_alloc_send_pskb(struct sock *sk,
 					struct page *page;
 					skb_frag_t *frag;
 
-					page = alloc_pages(sk->sk_allocation, 0);
+					page = alloc_page(sk->sk_allocation);
 					if (!page) {
 						err = -ENOBUFS;
 						skb_shinfo(skb)->nr_frags = i;
Signature · 1 line
Shani