1 --- a/grub-core/term/serial.c
2 +++ b/grub-core/term/serial.c
3 @@ -241,9 +241,9 @@ grub_cmd_serial (grub_extcmd_context_t c
5 if (state[OPTION_RTSCTS].set)
7 - if (grub_strcmp (state[OPTION_PARITY].arg, "on") == 0)
8 + if (grub_strcmp (state[OPTION_RTSCTS].arg, "on") == 0)
10 - if (grub_strcmp (state[OPTION_PARITY].arg, "off") == 0)
11 + else if (grub_strcmp (state[OPTION_RTSCTS].arg, "off") == 0)
14 return grub_error (GRUB_ERR_BAD_ARGUMENT,