summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2007-05-28 14:05:17 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2007-05-28 14:05:17 +0000
commitc70e3a3f9138fcd3f6e46f9247dbe623c4b7aedf (patch)
tree1c7f5db9c123280aef86736efd7a8c3b704600dd /sys
parent0c7c06c3f57a6a5f7f6eacf5ac18e59676643063 (diff)
Fix timeout loop in ips_poll().
Diffstat (limited to 'sys')
-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);
}