Skip to content

Commit 1312ba4

Browse files
J Freyenseegregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1dae42b commit 1312ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/misc/pti.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ static void pti_tty_cleanup(struct tty_struct *tty)
498498
if (pti_tty_data == NULL)
499499
return;
500500
pti_release_masterchannel(pti_tty_data->mc);
501-
kfree(tty->driver_data);
501+
kfree(pti_tty_data);
502502
tty->driver_data = NULL;
503503
}
504504

0 commit comments

Comments
 (0)