Explorar o código

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>
Martin Schwidefsky %!s(int64=9) %!d(string=hai) anos
pai
achega
5ff04fe565
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      drivers/s390/char/tty3270.c

+ 1 - 0
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