diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-04-27 15:32:06 +0300 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-05-04 17:29:50 +0300 |
commit | 5ff04fe5659f78c0450cc6858b12bba9e4049578 (patch) | |
tree | 4f31715342340a3f45e554f401f0908de5626d52 /drivers/s390/char/tty3270.c | |
parent | 5606330627ab680f5e6b7549d14ec3ffdae58c15 (diff) | |
download | linux-5ff04fe5659f78c0450cc6858b12bba9e4049578.tar.xz |
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/tty3270.c')
-rw-r--r-- | drivers/s390/char/tty3270.c | 1 |
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 |