From: J Freyensee Date: Wed, 25 May 2011 21:56:43 +0000 (-0700) Subject: pti: PTI semantics fix in pti_tty_cleanup. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1312ba40c0d00f0a5cfcfe3afc222fcef2a90b56;p=mv-sheeva.git pti: PTI semantics fix in pti_tty_cleanup. This patch fixes a semantics issue in the pti_tty_cleanup() routine. Signed-off-by: J Freyensee Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/pti.c b/drivers/misc/pti.c index e74e7d26656..374dfcfccd0 100644 --- a/drivers/misc/pti.c +++ b/drivers/misc/pti.c @@ -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; }