diff options
author | 2005-01-15 19:48:15 +0000 | |
---|---|---|
committer | 2005-01-15 19:48:15 +0000 | |
commit | 661fabb3a69f501d8cfb24a4edf4e53f91b53a82 (patch) | |
tree | 8bf7b95db7b04105a231628b510291995243373f /sys/dev/hil | |
parent | VAXstation 4000/96 works (diff) | |
download | wireguard-openbsd-661fabb3a69f501d8cfb24a4edf4e53f91b53a82.tar.xz wireguard-openbsd-661fabb3a69f501d8cfb24a4edf4e53f91b53a82.zip |
If the loop is empty when we probe it, enable the interrupt anyways, so that
we can react on post-boot device plugs.
Diffstat (limited to 'sys/dev/hil')
-rw-r--r-- | sys/dev/hil/hil.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/hil/hil.c b/sys/dev/hil/hil.c index e794795c6be..e8122414211 100644 --- a/sys/dev/hil/hil.c +++ b/sys/dev/hil/hil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hil.c,v 1.16 2005/01/11 00:11:05 miod Exp $ */ +/* $OpenBSD: hil.c,v 1.17 2005/01/15 19:48:15 miod Exp $ */ /* * Copyright (c) 2003, 2004, Miodrag Vallat. * All rights reserved. @@ -237,7 +237,9 @@ hil_attach_deferred(void *v) if (tries == 0 || (db & LPS_CONFFAIL)) { printf("%s: no devices\n", sc->sc_dev.dv_xname); - return; + sc->sc_pending = 0; + if (tries == 0) + return; } /* |