X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=drivers%2Fchar%2Ftty_io.c;h=6da962c9b21c880262a883db546ea1c8c7a99764;hb=6da8d866d0d39e9509ff826660f6a86a6757c966;hp=a42c466f7092e2f519f8428be2669ab964a56575;hpb=39f1cd635cbe8a42c3c74fa6bf9f61c1156bd27b;p=deliverable%2Flinux.git diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index a42c466f7092..6da962c9b21c 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c @@ -1423,6 +1423,8 @@ static void release_one_tty(struct work_struct *work) list_del_init(&tty->tty_files); file_list_unlock(); + put_pid(tty->pgrp); + put_pid(tty->session); free_tty_struct(tty); }