]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
s390/3270: fix view reference counting
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 2 May 2016 11:49:28 +0000 (13:49 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 4 May 2016 14:29:51 +0000 (16:29 +0200)
commitb512353c15fe7665893e92e0c989c088505a37b8
treedf61ae58591dfa47a96a2fd2966caa0f7a1e6da4
parent5ff04fe5659f78c0450cc6858b12bba9e4049578
s390/3270: fix view reference counting

The tty3270_close function set tty->driver_data to NULL after the
open count dropped to zero but tty3270_cleanup still needs the
pointer to the tty3270 view to drop the reference count.

Move the clearing of tty->driver_data to tty3270_cleanup and
drop the unnecessary tty_port_tty_set calls in tty3270_install.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/tty3270.c