Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150928
b: refs/heads/master
c: 3790c8c
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jun 13, 2009
1 parent 890c534 commit 9071acc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 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: da6782927de809d9d427bd4bd6a4024243e41f13
refs/heads/master: 3790c8cdb99f23824b23cb16df608281b335ee91
3 changes: 2 additions & 1 deletion trunk/drivers/misc/sgi-xp/xpnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,8 @@ xpnet_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
"packet\n", sizeof(struct xpnet_pending_msg));

dev->stats.tx_errors++;
return -ENOMEM;
dev_kfree_skb(skb);
return NETDEV_TX_OK;
}

/* get the beginning of the first cacheline and end of last */
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/ethoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ static int ethoc_start_xmit(struct sk_buff *skb, struct net_device *dev)

if (unlikely(skb->len > ETHOC_BUFSIZ)) {
priv->stats.tx_errors++;
return -EMSGSIZE;
goto out;
}

entry = priv->cur_tx % priv->num_tx;
Expand Down Expand Up @@ -840,9 +840,9 @@ static int ethoc_start_xmit(struct sk_buff *skb, struct net_device *dev)
}

dev->trans_start = jiffies;
dev_kfree_skb(skb);

spin_unlock_irq(&priv->lock);
out:
dev_kfree_skb(skb);
return NETDEV_TX_OK;
}

Expand Down
5 changes: 2 additions & 3 deletions trunk/drivers/net/ibmlana.c
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ static int ibmlana_close(struct net_device *dev)
static int ibmlana_tx(struct sk_buff *skb, struct net_device *dev)
{
ibmlana_priv *priv = netdev_priv(dev);
int retval = 0, tmplen, addr;
int tmplen, addr;
unsigned long flags;
tda_t tda;
int baddr;
Expand All @@ -824,7 +824,6 @@ static int ibmlana_tx(struct sk_buff *skb, struct net_device *dev)
the upper layer is in deep desperation and we simply ignore the frame. */

if (priv->txusedcnt >= TXBUFCNT) {
retval = -EIO;
dev->stats.tx_dropped++;
goto tx_done;
}
Expand Down Expand Up @@ -874,7 +873,7 @@ static int ibmlana_tx(struct sk_buff *skb, struct net_device *dev)
spin_unlock_irqrestore(&priv->lock, flags);
tx_done:
dev_kfree_skb(skb);
return retval;
return NETDEV_TX_OK;
}

/* switch receiver mode. */
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/rrunner.c
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,7 @@ static int rr_start_xmit(struct sk_buff *skb, struct net_device *dev)
if (!(new_skb = dev_alloc_skb(len + 8))) {
dev_kfree_skb(skb);
netif_wake_queue(dev);
return -EBUSY;
return NETDEV_TX_OK;
}
skb_reserve(new_skb, 8);
skb_put(new_skb, len);
Expand Down

0 comments on commit 9071acc

Please sign in to comment.