aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/platforms/powernv/opal.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powernv/opal.c b/arch/powerpc/platforms/powernv/opal.c
index ade4463226c6..12d9846aa87e 100644
--- a/arch/powerpc/platforms/powernv/opal.c
+++ b/arch/powerpc/platforms/powernv/opal.c
@@ -144,6 +144,13 @@ int opal_put_chars(uint32_t vtermno, const char *data, int total_len)
144 rc == OPAL_BUSY_EVENT || rc == OPAL_SUCCESS)) { 144 rc == OPAL_BUSY_EVENT || rc == OPAL_SUCCESS)) {
145 len = total_len; 145 len = total_len;
146 rc = opal_console_write(vtermno, &len, data); 146 rc = opal_console_write(vtermno, &len, data);
147
148 /* Closed or other error drop */
149 if (rc != OPAL_SUCCESS && rc != OPAL_BUSY &&
150 rc != OPAL_BUSY_EVENT) {
151 written = total_len;
152 break;
153 }
147 if (rc == OPAL_SUCCESS) { 154 if (rc == OPAL_SUCCESS) {
148 total_len -= len; 155 total_len -= len;
149 data += len; 156 data += len;