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:
parent
1f6c8bc54b
commit
c3bd3b5978
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140463
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user