summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/9/port/devuart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/devuart.c b/sys/src/9/port/devuart.c
index df5d515a4..62f42ac17 100644
--- a/sys/src/9/port/devuart.c
+++ b/sys/src/9/port/devuart.c
@@ -194,7 +194,7 @@ uartreset(void)
uartndir = 1 + 3*uartnuart;
uartdir = xalloc(uartndir * sizeof(Dirtab));
- if (uart == nil || uartdir == nil)
+ if(uartnuart && uart == nil || uartdir == nil)
panic("uartreset: no memory");
dp = uartdir;
strcpy(dp->name, ".");