From 6611732341ce89cbc3363e1dbddbd290dfbb493b Mon Sep 17 00:00:00 2001 From: Hidetoshi Shimokawa Date: Sat, 15 Feb 2003 01:25:39 +0000 Subject: [PATCH] Protect calling fwohci_intr() with splfw() for 4-stable. --- sys/dev/firewire/fwohci_pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/firewire/fwohci_pci.c b/sys/dev/firewire/fwohci_pci.c index 4681b2433b5..a837f60aefa 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; } -- 2.45.2