Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115027
b: refs/heads/master
c: c25bab5
h: refs/heads/master
i:
  115025: fa186df
  115023: bfe726b
v: v3
  • Loading branch information
David Kilroy authored and John W. Linville committed Oct 15, 2008
1 parent 11c2cf0 commit 2eda2b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 552a71515eef5cba9af8bfe608149557059c4463
refs/heads/master: c25bab54fe30d26a2cddf7058d77da72be630b23
5 changes: 3 additions & 2 deletions trunk/drivers/net/wireless/spectrum_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,11 @@ spectrum_cs_suspend(struct pcmcia_device *link)
{
struct net_device *dev = link->priv;
struct orinoco_private *priv = netdev_priv(dev);
unsigned long flags;
int err = 0;

/* Mark the device as stopped, to block IO until later */
spin_lock(&priv->lock);
spin_lock_irqsave(&priv->lock, flags);

err = __orinoco_down(dev);
if (err)
Expand All @@ -463,7 +464,7 @@ spectrum_cs_suspend(struct pcmcia_device *link)
netif_device_detach(dev);
priv->hw_unavailable++;

spin_unlock(&priv->lock);
spin_unlock_irqrestore(&priv->lock, flags);

return err;
}
Expand Down

0 comments on commit 2eda2b4

Please sign in to comment.