Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87956
b: refs/heads/master
c: cabce28
h: refs/heads/master
v: v3
  • Loading branch information
Mikulas Patocka authored and Linus Torvalds committed Apr 1, 2008
1 parent ffcd412 commit 0340661
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: a9edadbf790d72adf6ebed476cb5caf7743e7e4a
refs/heads/master: cabce28ec0a0ae3d0ddfa4461f0e8be94ade9e46
7 changes: 4 additions & 3 deletions trunk/drivers/net/plip.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,17 +903,18 @@ plip_interrupt(void *dev_id)
struct net_local *nl;
struct plip_local *rcv;
unsigned char c0;
unsigned long flags;

nl = netdev_priv(dev);
rcv = &nl->rcv_data;

spin_lock_irq (&nl->lock);
spin_lock_irqsave (&nl->lock, flags);

c0 = read_status(dev);
if ((c0 & 0xf8) != 0xc0) {
if ((dev->irq != -1) && (net_debug > 1))
printk(KERN_DEBUG "%s: spurious interrupt\n", dev->name);
spin_unlock_irq (&nl->lock);
spin_unlock_irqrestore (&nl->lock, flags);
return;
}

Expand Down Expand Up @@ -942,7 +943,7 @@ plip_interrupt(void *dev_id)
break;
}

spin_unlock_irq(&nl->lock);
spin_unlock_irqrestore(&nl->lock, flags);
}

static int
Expand Down

0 comments on commit 0340661

Please sign in to comment.