summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i386/i386at/com.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386at/com.c b/i386/i386at/com.c
index 02b650b8..3402a025 100644
--- a/i386/i386at/com.c
+++ b/i386/i386at/com.c
@@ -101,7 +101,7 @@ comprobe_general(struct bus_device *dev, int noisy)
char *type = "8250";
int i;
- if ((unit < 0) || (unit > NCOM)) {
+ if ((unit < 0) || (unit >= NCOM)) {
printf("com %d out of range\n", unit);
return(0);
}