]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
s390/3270: add missing tty_kref_put
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 27 Apr 2016 12:32:06 +0000 (14:32 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 4 May 2016 14:29:50 +0000 (16:29 +0200)
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>
drivers/s390/char/tty3270.c

index e96fc7fd9498458b5506789f4b900b813885adda..345f392b50b2cc1928009fc2abdba92b4851fec7 100644 (file)
@@ -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