summaryrefslogtreecommitdiffstats
path: root/sys/dev/firewire/fwohci_pci.c
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2003-02-15 01:25:39 +0000
committersimokawa <simokawa@FreeBSD.org>2003-02-15 01:25:39 +0000
commit12452d351089caef2009110815720045adc0b0a3 (patch)
treeabf2eeb4e92152b56abee810a13290ffb9da96b8 /sys/dev/firewire/fwohci_pci.c
parent40dca7e24f3ca9ff9e779e7ceebebbc145fd70f5 (diff)
downloadFreeBSD-src-12452d351089caef2009110815720045adc0b0a3.zip
FreeBSD-src-12452d351089caef2009110815720045adc0b0a3.tar.gz
Protect calling fwohci_intr() with splfw() for 4-stable.
Diffstat (limited to 'sys/dev/firewire/fwohci_pci.c')
-rw-r--r--sys/dev/firewire/fwohci_pci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/firewire/fwohci_pci.c b/sys/dev/firewire/fwohci_pci.c
index 4681b24..a837f60 100644
--- a/sys/dev/firewire/fwohci_pci.c
+++ b/sys/dev/firewire/fwohci_pci.c
@@ -181,7 +181,7 @@ fwohci_pci_attach(device_t self)
{
fwohci_softc_t *sc = device_get_softc(self);
int err;
- int rid;
+ int rid, s;
#if __FreeBSD_version < 500000
int intr;
/* For the moment, put in a message stating what is wrong */
@@ -258,7 +258,9 @@ fwohci_pci_attach(device_t self)
#if 0
DELAY(100);
#endif
+ s = splfw();
fwohci_intr((void *)sc);
+ splx(s);
return 0;
}
OpenPOWER on IntegriCloud