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.
This commit is contained in:
Warner Losh 2005-01-19 01:26:44 +00:00
parent 1f6c8bc54b
commit c3bd3b5978
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140463

View File

@ -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);
}