Re: [PATCH] tty: fix pid refcount leak in tty_signal_session_leader

2020-07-26 Thread Andy Shevchenko
On Sun, Jul 26, 2020 at 8:30 AM Xin Xiong wrote: > > In the loop, every time when p->signal->leader is true, the function > tty_signal_session_leader() will invoke get_pid() and return a > reference of tty->pgrp with increased refcount to the local variable > tty_pgrp or return NULL if it fails. A

Re: [PATCH] tty: fix pid refcount leak in tty_signal_session_leader

2020-07-26 Thread Greg Kroah-Hartman
On Sun, Jul 26, 2020 at 01:28:04PM +0800, Xin Xiong wrote: > In the loop, every time when p->signal->leader is true, the function > tty_signal_session_leader() will invoke get_pid() and return a > reference of tty->pgrp with increased refcount to the local variable > tty_pgrp or return NULL if it f