Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268136
b: refs/heads/master
c: bf76937
h: refs/heads/master
v: v3
  • Loading branch information
Haiyang Zhang authored and Greg Kroah-Hartman committed Sep 6, 2011
1 parent 1b9b9bf commit e8aabe7
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 8a5f9edc4dd6c1f9fb2446a36e7cd44b79412271
refs/heads/master: bf769375c9175b29fe72b10394888e0090c6b133
6 changes: 3 additions & 3 deletions trunk/drivers/staging/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net)
(num_pages * sizeof(struct hv_page_buffer)) +
sizeof(struct rndis_filter_packet), GFP_ATOMIC);
if (!packet) {
/* out of memory, silently drop packet */
/* out of memory, drop packet */
netdev_err(net, "unable to allocate hv_netvsc_packet\n");

dev_kfree_skb(skb);
net->stats.tx_dropped++;
return NETDEV_TX_OK;
return NETDEV_TX_BUSY;
}

packet->extension = (void *)(unsigned long)packet +
Expand Down Expand Up @@ -194,7 +194,7 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net)
dev_kfree_skb_any(skb);
}

return NETDEV_TX_OK;
return ret ? NETDEV_TX_BUSY : NETDEV_TX_OK;
}

/*
Expand Down

0 comments on commit e8aabe7

Please sign in to comment.