projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c073cfc
)
forcedeth: spin_unlock_irq in interrupt handler fix
author
Denis Efremov
<
[email protected]
>
Fri, 20 Jul 2012 21:54:34 +0000
(
01:54
+0400)
committer
David S. Miller
<
[email protected]
>
Fri, 20 Jul 2012 23:18:36 +0000
(16:18 -0700)
The replacement of spin_lock_irq/spin_unlock_irq pair in interrupt
handler by spin_lock_irqsave/spin_lock_irqrestore pair.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Denis Efremov <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/nvidia/forcedeth.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/nvidia/forcedeth.c
b/drivers/net/ethernet/nvidia/forcedeth.c
index 8b7c5129c7e186fc5da0b924f79654b44348b1a9..67edc2e15b825cf0d7dc238802f57ee4db3b7485 100644
(file)
--- a/
drivers/net/ethernet/nvidia/forcedeth.c
+++ b/
drivers/net/ethernet/nvidia/forcedeth.c
@@
-3775,7
+3775,7
@@
static irqreturn_t nv_nic_irq_other(int foo, void *data)
np->link_timeout = jiffies + LINK_TIMEOUT;
}
if (events & NVREG_IRQ_RECOVER_ERROR) {
- spin_lock_irq
(&np->lock
);
+ spin_lock_irq
save(&np->lock, flags
);
/* disable interrupts on the nic */
writel(NVREG_IRQ_OTHER, base + NvRegIrqMask);
pci_push(base);
@@
-3785,7
+3785,7
@@
static irqreturn_t nv_nic_irq_other(int foo, void *data)
np->recover_error = 1;
mod_timer(&np->nic_poll, jiffies + POLL_WAIT);
}
- spin_unlock_irq
(&np->lock
);
+ spin_unlock_irq
restore(&np->lock, flags
);
break;
}
if (unlikely(i > max_interrupt_work)) {