pti: PTI semantics fix in pti_tty_cleanup.
[deliverable/linux.git] / drivers / misc / pti.c
index e74e7d266569c21b7c5c630af9a051f9e7e3a7cc..374dfcfccd07af35de8f5c45e8b0d6ac106a6bef 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;
 }
 
This page took 0.033874 seconds and 5 git commands to generate.