patch-1.3.6 linux/drivers/net/ibmtr.c

Next file: linux/drivers/net/lance.c
Previous file: linux/drivers/net/hp100.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.5/linux/drivers/net/ibmtr.c linux/drivers/net/ibmtr.c
@@ -1073,7 +1073,7 @@
 #endif
 
 
-	if(!(skb=alloc_skb(ntohs(rec_req->frame_len)-lan_hdr_len+sizeof(struct trh_hdr), GFP_ATOMIC))) {
+	if(!(skb=dev_alloc_skb(ntohs(rec_req->frame_len)-lan_hdr_len+sizeof(struct trh_hdr)))) {
 		DPRINTK("out of memory. frame dropped.\n");	
 		ti->tr_stats.rx_dropped++;
 		rec_resp->ret_code=DATA_LOST;
@@ -1081,7 +1081,7 @@
 		return;
 	}
 
-	skb->len=ntohs(rec_req->frame_len)-lan_hdr_len+sizeof(struct trh_hdr);
+	skb_put(skb,ntohs(rec_req->frame_len)-lan_hdr_len+sizeof(struct trh_hdr));
 	skb->dev=dev;
 
 #if 0

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this