staging: dgnc: dereferences ts var in dgnc_tty_close()
authorLidza Louina <lidza.louina@gmail.com>
Tue, 13 Aug 2013 19:49:55 +0000 (15:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2013 21:06:13 +0000 (14:06 -0700)
The value tty->termios needed to be dereferenced to be assigned to the
variable ts.

Signed-off-by: Lidza Louina <lidza.louina@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_tty.c

index a00fe2bcaad88ce5be31eaa9a2f72c787e729782..c174bf8063ebfc24a82ca8cb6b7e5eae79ebb77e 100644 (file)
@@ -1758,7 +1758,7 @@ static void dgnc_tty_close(struct tty_struct *tty, struct file *file)
        if (!bd || bd->magic != DGNC_BOARD_MAGIC)
                return;
 
-       ts = tty->termios;
+       ts = &tty->termios;
 
        DPR_CLOSE(("Close called\n"));