diff options
Diffstat (limited to 'drivers/tty/hvc/hvsi_lib.c')
-rw-r--r-- | drivers/tty/hvc/hvsi_lib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/hvc/hvsi_lib.c b/drivers/tty/hvc/hvsi_lib.c index 7ae6c293e518..a270f04588d7 100644 --- a/drivers/tty/hvc/hvsi_lib.c +++ b/drivers/tty/hvc/hvsi_lib.c | |||
@@ -405,8 +405,7 @@ void hvsilib_close(struct hvsi_priv *pv, struct hvc_struct *hp) | |||
405 | hvsi_send_close(pv); | 405 | hvsi_send_close(pv); |
406 | } | 406 | } |
407 | 407 | ||
408 | if (pv->tty) | 408 | tty_kref_put(pv->tty); |
409 | tty_kref_put(pv->tty); | ||
410 | pv->tty = NULL; | 409 | pv->tty = NULL; |
411 | } | 410 | } |
412 | 411 | ||