]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pch_gbe: fix bogus trylock conversion
authorFlorian Westphal <fw@strlen.de>
Tue, 26 Apr 2016 21:14:30 +0000 (23:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Apr 2016 21:36:33 +0000 (17:36 -0400)
Should have converted 'if (trylock)' to 'lock'.

Fixes: a6086a893718db ("drivers: net: remove NETDEV_TX_LOCKED")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c

index 4475dcc687a2e04f66c5cd989256909165c86ef3..ca4add7494106256aa171951c4bbe13ac96b50fa 100644 (file)
@@ -2137,7 +2137,7 @@ static int pch_gbe_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
        struct pch_gbe_tx_ring *tx_ring = adapter->tx_ring;
        unsigned long flags;
 
-       spin_trylock_irqsave(&tx_ring->tx_lock, flags);
+       spin_lock_irqsave(&tx_ring->tx_lock, flags);
 
        if (unlikely(!PCH_GBE_DESC_UNUSED(tx_ring))) {
                netif_stop_queue(netdev);