summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2001-08-23 13:23:28 +0000
committerart <art@openbsd.org>2001-08-23 13:23:28 +0000
commit448bae1fbabc4fb8554810c7c2ac1e957cbba658 (patch)
treed0df814978d713ce3768c3fb3e667f37eb4b1a48
parentAdd another EPERM condition to ERRORS: if a hard link is attempted for a file (diff)
downloadwireguard-openbsd-448bae1fbabc4fb8554810c7c2ac1e957cbba658.tar.xz
wireguard-openbsd-448bae1fbabc4fb8554810c7c2ac1e957cbba658.zip
initialize the channel timeout earlier.
-rw-r--r--sys/dev/ic/wdc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c
index e3e65e2f622..c3f6d2917cd 100644
--- a/sys/dev/ic/wdc.c
+++ b/sys/dev/ic/wdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wdc.c,v 1.41 2001/07/31 07:07:00 csapuntz Exp $ */
+/* $OpenBSD: wdc.c,v 1.42 2001/08/23 13:23:28 art Exp $ */
/* $NetBSD: wdc.c,v 1.68 1999/06/23 19:00:17 bouyer Exp $ */
@@ -619,6 +619,8 @@ wdcattach(chp)
if (!cold)
at_poll = AT_WAIT;
+ timeout_set(&chp->ch_timo, wdctimeout, chp);
+
#ifndef __OpenBSD__
if ((error = wdc_addref(chp)) != 0) {
printf("%s: unable to enable controller\n",
@@ -661,7 +663,6 @@ wdcattach(chp)
inited++;
}
TAILQ_INIT(&chp->ch_queue->sc_xfer);
- timeout_set(&chp->ch_timo, wdctimeout, chp);
for (i = 0; i < 2; i++) {
struct ata_drive_datas *drvp = &chp->ch_drive[i];