pti: PTI semantics fix in pti_tty_cleanup.
J Freyensee [Wed, 25 May 2011 21:56:43 +0000 (14:56 -0700)]
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>

drivers/misc/pti.c

index e74e7d2..374dfcf 100644 (file)
@@ -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;
 }