patch-1.3.7 linux/drivers/net/de600.c

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

diff -u --recursive --new-file v1.3.6/linux/drivers/net/de600.c linux/drivers/net/de600.c
@@ -609,7 +609,7 @@
 		return;
 	}
 
-	skb = dev_alloc_skb(size);
+	skb = dev_alloc_skb(size+2);
 	sti();
 	if (skb == NULL) {
 		printk("%s: Couldn't allocate a sk_buff of size %d.\n",
@@ -619,6 +619,7 @@
 	/* else */
 
 	skb->dev = dev;
+	skb_reserve(skb,2);	/* Align */
 	
 	/* 'skb->data' points to the start of sk_buff data area. */
 	buffer = skb_put(skb,size);

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