[rtems commit] bsp/qoriq: Fix hypervisor guest polled console

Sebastian Huber sebh at rtems.org
Mon Jan 22 09:39:23 UTC 2018


Module:    rtems
Branch:    master
Commit:    44ba969c158fa96b73bdfa89120896a7d3595248
Changeset: http://git.rtems.org/rtems/commit/?id=44ba969c158fa96b73bdfa89120896a7d3595248

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jan 15 13:56:12 2018 +0100

bsp/qoriq: Fix hypervisor guest polled console

Update #3085.

---

 c/src/lib/libbsp/powerpc/qoriq/console/console-config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c/src/lib/libbsp/powerpc/qoriq/console/console-config.c b/c/src/lib/libbsp/powerpc/qoriq/console/console-config.c
index 24d355a..4c1ca1d 100644
--- a/c/src/lib/libbsp/powerpc/qoriq/console/console-config.c
+++ b/c/src/lib/libbsp/powerpc/qoriq/console/console-config.c
@@ -84,7 +84,7 @@ static int qoriq_bc_read_polled(rtems_termios_device_context *base)
   count = 1;
   status = ev_byte_channel_receive(ctx->handle, &count, buf);
 
-  if (status != EV_SUCCESS) {
+  if (status != EV_SUCCESS || count == 0) {
     return -1;
   }
 



More information about the vc mailing list