Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102678
b: refs/heads/master
c: c7d6b7d
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed May 31, 2008
1 parent 73c514b commit bb15378
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 20cbe73cd52f6476f4f7122e8fc801896ea3c4b6
refs/heads/master: c7d6b7d20f42996b28b6a26587a081ce0fc37304
6 changes: 4 additions & 2 deletions trunk/drivers/net/tsi108_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,8 @@ static int tsi108_refill_rx(struct net_device *dev, int budget)
int rx = data->rxhead;
struct sk_buff *skb;

data->rxskbs[rx] = skb = dev_alloc_skb(TSI108_RXBUF_SIZE + 2);
data->rxskbs[rx] = skb = netdev_alloc_skb(dev,
TSI108_RXBUF_SIZE + 2);
if (!skb)
break;

Expand Down Expand Up @@ -1352,8 +1353,9 @@ static int tsi108_open(struct net_device *dev)
data->rxhead = 0;

for (i = 0; i < TSI108_RXRING_LEN; i++) {
struct sk_buff *skb = dev_alloc_skb(TSI108_RXBUF_SIZE + NET_IP_ALIGN);
struct sk_buff *skb;

skb = netdev_alloc_skb(dev, TSI108_RXBUF_SIZE + NET_IP_ALIGN);
if (!skb) {
/* Bah. No memory for now, but maybe we'll get
* some more later.
Expand Down

0 comments on commit bb15378

Please sign in to comment.