diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-04-27 14:32:06 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-05-04 16:29:50 +0200 |
commit | 5ff04fe5659f78c0450cc6858b12bba9e4049578 (patch) | |
tree | 4f31715342340a3f45e554f401f0908de5626d52 /drivers/s390 | |
parent | s390/dumpstack: implement and use return_address() (diff) | |
download | linux-5ff04fe5659f78c0450cc6858b12bba9e4049578.tar.xz linux-5ff04fe5659f78c0450cc6858b12bba9e4049578.zip |
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')
-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 |