> move spin_unlock(sighand->siglock) after get_current_tty() can avoid
> the race and fix the memleak.

We already take tty_ctrl_lock inside sighand->siglock so this all appears
safe and correct to me.

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to