diff options
author | J Freyensee <james_p_freyensee@linux.intel.com> | 2011-05-25 17:56:43 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-06-07 13:01:20 -0400 |
commit | 1312ba40c0d00f0a5cfcfe3afc222fcef2a90b56 (patch) | |
tree | efde9c6f3a62ec2b515e6a75c7dffc3686a1b822 /drivers/misc | |
parent | 1dae42bff57f7a61577ee881265985a660d35c07 (diff) |
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 <james_p_freyensee@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/pti.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/pti.c b/drivers/misc/pti.c index e74e7d266569..374dfcfccd07 100644 --- a/drivers/misc/pti.c +++ b/drivers/misc/pti.c | |||
@@ -498,7 +498,7 @@ static void pti_tty_cleanup(struct tty_struct *tty) | |||
498 | if (pti_tty_data == NULL) | 498 | if (pti_tty_data == NULL) |
499 | return; | 499 | return; |
500 | pti_release_masterchannel(pti_tty_data->mc); | 500 | pti_release_masterchannel(pti_tty_data->mc); |
501 | kfree(tty->driver_data); | 501 | kfree(pti_tty_data); |
502 | tty->driver_data = NULL; | 502 | tty->driver_data = NULL; |
503 | } | 503 | } |
504 | 504 | ||