diff options
Diffstat (limited to 'sys/dev/uart/uart_subr.c')
-rw-r--r-- | sys/dev/uart/uart_subr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/uart/uart_subr.c b/sys/dev/uart/uart_subr.c index 9a3cb85..4c40a36 100644 --- a/sys/dev/uart/uart_subr.c +++ b/sys/dev/uart/uart_subr.c @@ -177,6 +177,8 @@ uart_getenv(int devtype, struct uart_devinfo *di) else if (devtype == UART_DEV_DBGPORT) spec = getenv("hw.uart.dbgport"); else + spec = NULL; + if (spec == NULL) return (ENXIO); /* Set defaults. */ |