Re: PATCH: tty locking for 2.6.9rc2

Alan Cox
2004-09-15T20:43:10Z

On Wed, Sep 15, 2004 at 03:23:19PM -0500, Paul Fulghum wrote:
> Here is a patch against your last patch that clears
> up both the per tty refcount initialization and
> the remove_dev() global refcount leak.

Thanks

> /* Now set up the new line discipline. */
> tty->ldisc = *ld;
> + tty->ldisc.refcount = 0;

What do you think about

tty_ldisc_get(tty, ldisc_num)

That seems to remove the whole mess ?