Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2b3d824 authored by Mitch Williams's avatar Mitch Williams Committed by Jeff Garzik
Browse files

e1000: fix spinlock bug



This patch fixes an obvious and nasty bug where we could exit the transmit
routine while holding tx_lock.

Signed-off-by: default avatarMitch Williams <mitch.a.williams@intel.com>
parent a4936044
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2307,6 +2307,7 @@ e1000_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
	tso = e1000_tso(adapter, skb);
	if (tso < 0) {
		dev_kfree_skb_any(skb);
		spin_unlock_irqrestore(&adapter->tx_lock, flags);
		return NETDEV_TX_OK;
	}