aboutsummaryrefslogtreecommitdiff
path: root/drivers/s390/char
diff options
context:
space:
mode:
authorMartin Schwidefsky2016-04-27 14:32:06 +0200
committerMartin Schwidefsky2016-05-04 16:29:50 +0200
commit5ff04fe5659f78c0450cc6858b12bba9e4049578 (patch)
tree4f31715342340a3f45e554f401f0908de5626d52 /drivers/s390/char
parent5606330627ab680f5e6b7549d14ec3ffdae58c15 (diff)
s390/3270: add missing tty_kref_put
The tty3270_resize_work functions acquires a reference to the tty to call tty_do_resize but fails to release the reference again. Add the missing tty_kref_put. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/char')
-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 e96fc7fd9498..345f392b50b2 100644
--- a/drivers/s390/char/tty3270.c
+++ b/drivers/s390/char/tty3270.c
@@ -838,6 +838,7 @@ static void tty3270_resize_work(struct work_struct *work)
ws.ws_row = tp->view.rows - 2;
ws.ws_col = tp->view.cols;
tty_do_resize(tty, &ws);
+ tty_kref_put(tty);
}
static void