Skip to content

Commit 9833fac

Browse files
Alan Coxgregkh
authored andcommitted
tty: Fix up PPC fallout from the termios move
This fixes up the problem Stephen Rothwell reported when trying to merge -next Signed-off-by: Alan Cox <alan@linux.intel.com> Reported-by: Stephen Rothwell <sfr@cab.auug.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 6a6c8b3 commit 9833fac

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎drivers/tty/tty_ioctl.c‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -738,27 +738,27 @@ static int get_sgttyb(struct tty_struct *tty, struct sgttyb __user *sgttyb)
738738

739739
static void set_sgflags(struct ktermios *termios, int flags)
740740
{
741-
termios.c_iflag = ICRNL | IXON;
742-
termios.c_oflag = 0;
743-
termios.c_lflag = ISIG | ICANON;
741+
termios->c_iflag = ICRNL | IXON;
742+
termios->c_oflag = 0;
743+
termios->c_lflag = ISIG | ICANON;
744744
if (flags & 0x02) { /* cbreak */
745-
termios.c_iflag = 0;
746-
termios.c_lflag &= ~ICANON;
745+
termios->c_iflag = 0;
746+
termios->c_lflag &= ~ICANON;
747747
}
748748
if (flags & 0x08) { /* echo */
749-
termios.c_lflag |= ECHO | ECHOE | ECHOK |
749+
termios->c_lflag |= ECHO | ECHOE | ECHOK |
750750
ECHOCTL | ECHOKE | IEXTEN;
751751
}
752752
if (flags & 0x10) { /* crmod */
753-
termios.c_oflag |= OPOST | ONLCR;
753+
termios->c_oflag |= OPOST | ONLCR;
754754
}
755755
if (flags & 0x20) { /* raw */
756-
termios.c_iflag = 0;
757-
termios.c_lflag &= ~(ISIG | ICANON);
756+
termios->c_iflag = 0;
757+
termios->c_lflag &= ~(ISIG | ICANON);
758758
}
759-
if (!(termios.c_lflag & ICANON)) {
760-
termios.c_cc[VMIN] = 1;
761-
termios.c_cc[VTIME] = 0;
759+
if (!(termios->c_lflag & ICANON)) {
760+
termios->c_cc[VMIN] = 1;
761+
termios->c_cc[VTIME] = 0;
762762
}
763763
}
764764

0 commit comments

Comments
 (0)