From: Lidza Louina Date: Tue, 13 Aug 2013 19:49:55 +0000 (-0400) Subject: staging: dgnc: dereferences ts var in dgnc_tty_close() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5857a0b5f11b424911cc44034357d69abba85f8b;p=openwrt%2Fstaging%2Fblogic.git staging: dgnc: dereferences ts var in dgnc_tty_close() The value tty->termios needed to be dereferenced to be assigned to the variable ts. Signed-off-by: Lidza Louina Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index a00fe2bcaad8..c174bf8063eb 100644 --- a/drivers/staging/dgnc/dgnc_tty.c +++ b/drivers/staging/dgnc/dgnc_tty.c @@ -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"));