summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrange <grange@openbsd.org>2007-05-28 14:05:16 +0000
committergrange <grange@openbsd.org>2007-05-28 14:05:16 +0000
commit8e4b420ae0582cb7fb6a44cd81b3c628b59395e4 (patch)
treefc2ec73da54e3dc609bc0ce1b66d05134aee673c
parentmove `interrupted' stuff inside state: removes one local variable, allows (diff)
downloadwireguard-openbsd-8e4b420ae0582cb7fb6a44cd81b3c628b59395e4.tar.xz
wireguard-openbsd-8e4b420ae0582cb7fb6a44cd81b3c628b59395e4.zip
Fix timeout loop in ips_poll().
-rw-r--r--sys/dev/pci/ips.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/ips.c b/sys/dev/pci/ips.c
index af3f5241996..9189744fcfd 100644
--- a/sys/dev/pci/ips.c
+++ b/sys/dev/pci/ips.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ips.c,v 1.23 2007/05/28 13:07:49 grange Exp $ */
+/* $OpenBSD: ips.c,v 1.24 2007/05/28 14:05:16 grange Exp $ */
/*
* Copyright (c) 2006, 2007 Alexander Yurchenko <grange@openbsd.org>
@@ -719,7 +719,7 @@ ips_poll(struct ips_softc *sc, struct ips_ccb *c)
}
break;
}
- if (timeout == 0) {
+ if (timeout < 0) {
printf("%s: poll timeout\n", sc->sc_dev.dv_xname);
return (EBUSY);
}