diff options
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/drivers/mconsole_kern.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/um/drivers/mconsole_kern.c b/arch/um/drivers/mconsole_kern.c index c953e1477be4..949037e92a7b 100644 --- a/arch/um/drivers/mconsole_kern.c +++ b/arch/um/drivers/mconsole_kern.c | |||
@@ -305,7 +305,9 @@ void mconsole_stop(struct mc_request *req) | |||
305 | deactivate_fd(req->originating_fd, MCONSOLE_IRQ); | 305 | deactivate_fd(req->originating_fd, MCONSOLE_IRQ); |
306 | os_set_fd_block(req->originating_fd, 1); | 306 | os_set_fd_block(req->originating_fd, 1); |
307 | mconsole_reply(req, "stopped", 0, 0); | 307 | mconsole_reply(req, "stopped", 0, 0); |
308 | while (mconsole_get_request(req->originating_fd, req)) { | 308 | for (;;) { |
309 | if (!mconsole_get_request(req->originating_fd, req)) | ||
310 | continue; | ||
309 | if (req->cmd->handler == mconsole_go) | 311 | if (req->cmd->handler == mconsole_go) |
310 | break; | 312 | break; |
311 | if (req->cmd->handler == mconsole_stop) { | 313 | if (req->cmd->handler == mconsole_stop) { |