From: Sven Schnelle Date: Thu, 17 Nov 2022 16:52:40 +0000 (+0100) Subject: s390/tty3270: ignore NUL characters X-Git-Tag: v6.3-rc1~171^2~161 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=970cf9a97a27d3f9a72a17aa6aedb47758478c33;p=thirdparty%2Flinux.git s390/tty3270: ignore NUL characters With 'TERM=vt220' zsh is sending several NUL characters with the prompt to the tty. Both xterm and the linux drm console seem to ignore them. Ignore them in tty3270 as well. Signed-off-by: Sven Schnelle Acked-by: Heiko Carstens Tested-by: Niklas Schnelle Signed-off-by: Heiko Carstens --- diff --git a/drivers/s390/char/con3270.c b/drivers/s390/char/con3270.c index 9c816d1239ebc..7ff116c387156 100644 --- a/drivers/s390/char/con3270.c +++ b/drivers/s390/char/con3270.c @@ -1732,6 +1732,8 @@ static void tty3270_do_write(struct tty3270 *tp, struct tty_struct *tty, } switch (buf[i_msg]) { + case 0x00: + break; case 0x07: /* '\a' -- Alarm */ tp->wcc |= TW_PLUSALARM; break;