Skip to contentSkip to conversation

PTI semantics fix in pti_tty_cleanup.

PATCH New [email protected] 1 participant 1 message May 25, 2011 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PTI semantics fix in pti_tty_cleanup.

From: J Freyensee <[email protected]>

This patch fixes a semantics issue in the pti_tty_cleanup() routine.

---
 drivers/misc/pti.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/misc/pti.c +1 -1
index 62b7ba4..e5f295a 100644
@@ -498,7 +498,7 @@ static void pti_tty_cleanup(struct tty_struct *tty)
 	if (pti_tty_data == NULL)
 		return;
 	pti_release_masterchannel(pti_tty_data->mc);
-	kfree(tty->driver_data);
+	kfree(pti_tty_data);
 	tty->driver_data = NULL;
 }
 
Signature · 1 line
1.7.2.3