aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sundance.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sundance.c')
-rw-r--r--drivers/net/sundance.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sundance.c b/drivers/net/sundance.c
index e5662962c7bf..4793df843c24 100644
--- a/drivers/net/sundance.c
+++ b/drivers/net/sundance.c
@@ -1020,7 +1020,7 @@ static void init_ring(struct net_device *dev)
1020 1020
1021 /* Fill in the Rx buffers. Handle allocation failure gracefully. */ 1021 /* Fill in the Rx buffers. Handle allocation failure gracefully. */
1022 for (i = 0; i < RX_RING_SIZE; i++) { 1022 for (i = 0; i < RX_RING_SIZE; i++) {
1023 struct sk_buff *skb = dev_alloc_skb(np->rx_buf_sz); 1023 struct sk_buff *skb = dev_alloc_skb(np->rx_buf_sz + 2);
1024 np->rx_skbuff[i] = skb; 1024 np->rx_skbuff[i] = skb;
1025 if (skb == NULL) 1025 if (skb == NULL)
1026 break; 1026 break;
@@ -1411,7 +1411,7 @@ static void refill_rx (struct net_device *dev)
1411 struct sk_buff *skb; 1411 struct sk_buff *skb;
1412 entry = np->dirty_rx % RX_RING_SIZE; 1412 entry = np->dirty_rx % RX_RING_SIZE;
1413 if (np->rx_skbuff[entry] == NULL) { 1413 if (np->rx_skbuff[entry] == NULL) {
1414 skb = dev_alloc_skb(np->rx_buf_sz); 1414 skb = dev_alloc_skb(np->rx_buf_sz + 2);
1415 np->rx_skbuff[entry] = skb; 1415 np->rx_skbuff[entry] = skb;
1416 if (skb == NULL) 1416 if (skb == NULL)
1417 break; /* Better luck next round. */ 1417 break; /* Better luck next round. */