Re: tty_[un]register_devfs putting 3K structures on the stack

From: Jeff Dike (jdike@karaya.com)
Date: Fri Oct 06 2000 - 16:22:11 EST


tytso@MIT.EDU said:
> And it's allocating a tty_struct for a really dumb reason, too. It's
> just using it so it cna call tty_name.

> Just replace the call to tty_name with something like this:

> sprintf(buf, driver->name, idx + driver->name_base)

> and make the obvious change to avoid using tty.device, and you can
> avoid need to allocate a tty_struct altogether.

Are you willing to consider this a critical bug that deserves to be fixed
before 2.4.0?

If so, I'm willing to make the fix and send it to whoever wants it.

                                Jeff

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



This archive was generated by hypermail 2b29 : Sat Oct 07 2000 - 21:00:19 EST