summaryrefslogtreecommitdiffstats
path: root/sys/dev/wi
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-01-19 01:26:44 +0000
committerimp <imp@FreeBSD.org>2005-01-19 01:26:44 +0000
commit78d2c458fcf5e12f2f95a7281fb74be119050c0f (patch)
tree4c1cf24b7aa578f6245fc4b83e4bc52dcd0b5bc4 /sys/dev/wi
parent5608e326b2b4b7792b4984fc9a24303c1bd3153d (diff)
downloadFreeBSD-src-78d2c458fcf5e12f2f95a7281fb74be119050c0f.zip
FreeBSD-src-78d2c458fcf5e12f2f95a7281fb74be119050c0f.tar.gz
Call wi_free after we turn off the interrupts. If we call it before,
then we reference parts of the softc. # My appologies, but this was sent to me by someone whose name I've lost.
Diffstat (limited to 'sys/dev/wi')
-rw-r--r--sys/dev/wi/if_wi_pccard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/wi/if_wi_pccard.c b/sys/dev/wi/if_wi_pccard.c
index 75355a2..5c7b593 100644
--- a/sys/dev/wi/if_wi_pccard.c
+++ b/sys/dev/wi/if_wi_pccard.c
@@ -197,12 +197,12 @@ wi_pccard_probe(dev)
if (error)
return (error);
- wi_free(dev);
-
/* Make sure interrupts are disabled. */
CSR_WRITE_2(sc, WI_INT_EN, 0);
CSR_WRITE_2(sc, WI_EVENT_ACK, 0xFFFF);
+ wi_free(dev);
+
return (0);
}
OpenPOWER on IntegriCloud