aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2012-08-07 15:47:41 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-10 16:29:57 -0400
commit2312e4f3b2f17cac2cf257c759ad48eb80fdf230 (patch)
treec1c45e68a7cb849cdb80bd7db1acf51f625c3f18 /drivers/s390
parent536a3440a27f8687090bdf33468b003bc0f810cf (diff)
TTY: tty3270, free tty driver properly
On module unload, in tty3270_exit, we forgot to free the tty driver. Add there a call to put_tty_driver. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: linux390@de.ibm.com Cc: linux-s390@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/char/tty3270.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/char/tty3270.c b/drivers/s390/char/tty3270.c
index 1928f3458d1..215037c745c 100644
--- a/drivers/s390/char/tty3270.c
+++ b/drivers/s390/char/tty3270.c
@@ -1800,6 +1800,7 @@ tty3270_exit(void)
1800 driver = tty3270_driver; 1800 driver = tty3270_driver;
1801 tty3270_driver = NULL; 1801 tty3270_driver = NULL;
1802 tty_unregister_driver(driver); 1802 tty_unregister_driver(driver);
1803 put_tty_driver(driver);
1803 tty3270_del_views(); 1804 tty3270_del_views();
1804} 1805}
1805 1806