summaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia/3c589_cs.c
diff options
context:
space:
mode:
authorKen Kawasaki <ken_kawasaki@spring.nifty.jp>2009-12-12 14:44:11 +0000
committerDavid S. Miller <davem@davemloft.net>2009-12-13 19:47:43 -0800
commit671c8806c25d06407e348690c09d7c37521eda32 (patch)
treedac56b7f12e713ad149c35f7d1e1a866c627b1d7 /drivers/net/pcmcia/3c589_cs.c
parente0802793f6f65242760089d8d85a50098706dd26 (diff)
downloadop-kernel-dev-671c8806c25d06407e348690c09d7c37521eda32.zip
op-kernel-dev-671c8806c25d06407e348690c09d7c37521eda32.tar.gz
3c574_cs: disable irq before calling el3_interrupt
3c574_cs, 3c589_cs: disable irq before calling el3_interrupt in the media_check function. Signed-off-by: Ken Kawasaki <ken_kawasaki@spring.nifty.jp> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/pcmcia/3c589_cs.c')
-rw-r--r--drivers/net/pcmcia/3c589_cs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/pcmcia/3c589_cs.c b/drivers/net/pcmcia/3c589_cs.c
index 6f8d7e2..322e11d 100644
--- a/drivers/net/pcmcia/3c589_cs.c
+++ b/drivers/net/pcmcia/3c589_cs.c
@@ -711,7 +711,11 @@ static void media_check(unsigned long arg)
(inb(ioaddr + EL3_TIMER) == 0xff)) {
if (!lp->fast_poll)
printk(KERN_WARNING "%s: interrupt(s) dropped!\n", dev->name);
+
+ local_irq_save(flags);
el3_interrupt(dev->irq, dev);
+ local_irq_restore(flags);
+
lp->fast_poll = HZ;
}
if (lp->fast_poll) {
OpenPOWER on IntegriCloud