mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 13:22:57 +00:00
tty: vt: fix 20 vs 0x20 typo in EScsiignore
[ Upstream commit0e6a92f67c
] The if (c >= 20 && c <= 0x3f) test added in commit7a99565f87
is wrong. 20 is DC4 in ascii and it makes no sense to consider that as the bottom limit. Instead, it should be 0x20 as in the other test in the commit above. This is supposed to NOT change anything as we handle interesting 20-0x20 asciis far before this if. So for sakeness, change to 0x20 (which is SPACE). Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> Fixes:7a99565f87
("vt: ignore csi sequences with intermediate characters.") Cc: Martin Hostettler <textshell@uchuujin.de> Link: https://lore.kernel.org/all/ZaP45QY2WEsDqoxg@neutronstar.dyndns.org/ Tested-by: Helge Deller <deller@gmx.de> # parisc STI console Link: https://lore.kernel.org/r/20240122110401.7289-4-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
a7484e9ddc
commit
e72d521d83
1 changed files with 1 additions and 1 deletions
|
@ -2469,7 +2469,7 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c)
|
|||
}
|
||||
return;
|
||||
case EScsiignore:
|
||||
if (c >= 20 && c <= 0x3f)
|
||||
if (c >= 0x20 && c <= 0x3f)
|
||||
return;
|
||||
vc->vc_state = ESnormal;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue