[PATCH 5/8] staging: dgnc: dereferences ts var in dgnc_tty_close()

Lidza Louina lidza.louina at gmail.com
Tue Aug 13 19:49:55 UTC 2013


The value tty->termios needed to be dereferenced to be assigned to the variable ts.

Signed-off-by: Lidza Louina <lidza.louina at gmail.com>
---
 drivers/staging/dgnc/dgnc_tty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c
index a00fe2b..c174bf8 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"));
 
-- 
1.8.1.2



More information about the devel mailing list