]> git.baikalelectronics.ru Git - 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)
commit262b112a2aaacf88746134deb8811e5b701ce6d3
treedf61ae58591dfa47a96a2fd2966caa0f7a1e6da4
parent2de2a7ecaba95fd12ec14e6036e82c93ea5fad2c
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