diff options
-rw-r--r-- | sys/scsi/scsi_safte.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/scsi/scsi_safte.c b/sys/scsi/scsi_safte.c index 28a02803965..dd768aa2ca5 100644 --- a/sys/scsi/scsi_safte.c +++ b/sys/scsi/scsi_safte.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_safte.c,v 1.4 2005/07/26 22:40:04 dlg Exp $ */ +/* $OpenBSD: scsi_safte.c,v 1.5 2005/07/27 15:06:00 dlg Exp $ */ /* * Copyright (c) 2005 David Gwynne <dlg@openbsd.org> @@ -228,6 +228,8 @@ safte_detach(struct device *self, int flags) struct safte_softc *sc = (struct safte_softc *)self; int i; + timeout_del(&sc->sc_timeout); + if (sc->sc_state != SAFTE_ST_NONE) { /* * we can't free the sensors since there is no mechanism to |