From 7111de631c6a76eeedfe0f41df7b9705582de1a5 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 11 Jul 2019 07:45:34 +0200 Subject: [PATCH] devuart: make sure uart is enabled in uartkick() --- sys/src/9/port/devuart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/9/port/devuart.c b/sys/src/9/port/devuart.c index 6cc9c46d8..928bfc9c5 100644 --- a/sys/src/9/port/devuart.c +++ b/sys/src/9/port/devuart.c @@ -644,7 +644,7 @@ uartkick(void *v) { Uart *p = v; - if(p->blocked) + if(!p->enabled || p->blocked) return; ilock(&p->tlock);