From: Philippe Mathieu-Daudé Date: Wed, 22 Oct 2025 15:07:39 +0000 (+0200) Subject: chardev/char-pty: Do not ignore chr_write() failures X-Git-Tag: v10.2.0-rc2~6^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=303f6049358e2ef35f2b107d6bd1a5be07ec35e9;p=thirdparty%2Fqemu.git chardev/char-pty: Do not ignore chr_write() failures Cc: qemu-stable@nongnu.org Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Marc-André Lureau Message-ID: <20251022150743.78183-6-philmd@linaro.org> --- diff --git a/chardev/char-pty.c b/chardev/char-pty.c index b066f01412..652b0bd9e7 100644 --- a/chardev/char-pty.c +++ b/chardev/char-pty.c @@ -125,7 +125,7 @@ static int char_pty_chr_write(Chardev *chr, const uint8_t *buf, int len) rc = RETRY_ON_EINTR(g_poll(&pfd, 1, 0)); g_assert(rc >= 0); if (!(pfd.revents & G_IO_HUP) && (pfd.revents & G_IO_OUT)) { - io_channel_send(s->ioc, buf, len); + return io_channel_send(s->ioc, buf, len); } return len;