|
@@ -1159,8 +1159,9 @@ static int device_xmit(struct sk_buff *skb, struct net_device *dev)
|
|
|
{
|
|
|
struct vnt_private *pDevice = netdev_priv(dev);
|
|
|
struct net_device_stats *stats = &pDevice->stats;
|
|
|
+ unsigned long flags;
|
|
|
|
|
|
- spin_lock_irq(&pDevice->lock);
|
|
|
+ spin_lock_irqsave(&pDevice->lock, flags);
|
|
|
|
|
|
netif_stop_queue(dev);
|
|
|
|
|
@@ -1181,7 +1182,7 @@ static int device_xmit(struct sk_buff *skb, struct net_device *dev)
|
|
|
}
|
|
|
|
|
|
out:
|
|
|
- spin_unlock_irq(&pDevice->lock);
|
|
|
+ spin_unlock_irqrestore(&pDevice->lock, flags);
|
|
|
|
|
|
return NETDEV_TX_OK;
|
|
|
}
|