Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188148
b: refs/heads/master
c: edee393
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and David S. Miller committed Mar 16, 2010
1 parent 5fef227 commit c48f05b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 6ad34145cf809384359fe513481d6e16638a57a3
refs/heads/master: edee39321be9f88c47627379e8abadfce0508768
8 changes: 5 additions & 3 deletions trunk/drivers/net/ksz884x.c
Original file line number Diff line number Diff line change
Expand Up @@ -4899,8 +4899,10 @@ static int netdev_tx(struct sk_buff *skb, struct net_device *dev)
struct sk_buff *org_skb = skb;

skb = dev_alloc_skb(org_skb->len);
if (!skb)
return NETDEV_TX_BUSY;
if (!skb) {
rc = NETDEV_TX_BUSY;
goto unlock;
}
skb_copy_and_csum_dev(org_skb, skb->data);
org_skb->ip_summed = 0;
skb->len = org_skb->len;
Expand All @@ -4914,7 +4916,7 @@ static int netdev_tx(struct sk_buff *skb, struct net_device *dev)
netif_stop_queue(dev);
rc = NETDEV_TX_BUSY;
}

unlock:
spin_unlock_irq(&hw_priv->hwlock);

return rc;
Expand Down

0 comments on commit c48f05b

Please sign in to comment.