diff options
-rw-r--r-- | drivers/net/hyperv/netvsc_drv.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 2517d209d602..dd294783b5c5 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c | |||
@@ -223,13 +223,10 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net) | |||
223 | net->stats.tx_bytes += skb->len; | 223 | net->stats.tx_bytes += skb->len; |
224 | net->stats.tx_packets++; | 224 | net->stats.tx_packets++; |
225 | } else { | 225 | } else { |
226 | /* we are shutting down or bus overloaded, just drop packet */ | ||
227 | net->stats.tx_dropped++; | ||
228 | kfree(packet); | 226 | kfree(packet); |
229 | dev_kfree_skb_any(skb); | ||
230 | } | 227 | } |
231 | 228 | ||
232 | return NETDEV_TX_OK; | 229 | return ret ? NETDEV_TX_BUSY : NETDEV_TX_OK; |
233 | } | 230 | } |
234 | 231 | ||
235 | /* | 232 | /* |