Skip to content

Commit

Permalink
pti: PTI semantics fix in pti_tty_cleanup.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
J Freyensee authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent 1dae42b commit 1312ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/pti.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1312ba4

Please sign in to comment.