summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/tty/hvc/hvc_tile.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/tty/hvc/hvc_tile.c')
-rw-r--r--kernel/drivers/tty/hvc/hvc_tile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/drivers/tty/hvc/hvc_tile.c b/kernel/drivers/tty/hvc/hvc_tile.c
index 3f6cd3102..9da1e842b 100644
--- a/kernel/drivers/tty/hvc/hvc_tile.c
+++ b/kernel/drivers/tty/hvc/hvc_tile.c
@@ -51,7 +51,8 @@ int tile_console_write(const char *buf, int count)
_SIM_CONTROL_OPERATOR_BITS));
return 0;
} else {
- return hv_console_write((HV_VirtAddr)buf, count);
+ /* Translate 0 bytes written to EAGAIN for hvc_console_print. */
+ return hv_console_write((HV_VirtAddr)buf, count) ?: -EAGAIN;
}
}