1
0
Files
linux/drivers
Eugeniy Meshcheryakov 3ab36ab685 try harder to load tty ldisc driver
Currently function tty_ldisc_get() tries to load an ldisc driver module
only when tty_ldisc_try_get() returns -EAGAIN. This happens only if
module is being unloaded. If ldisc module is not loaded
tty_ldisc_try_get() returns -EINVAL and this case is not handled in
tty_ldisc_get(), so request_module() is not called.

Attached patch fixes this by calling request_module() if
tty_ldisc_try_get() returned any error code.

I discovered this when my UMTS modem stopped working with 2.6.27-rc1
because module ppp_async was not loaded.

Signed-off-by: Eugeniy Meshcheryakov <eugen@debian.org>
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-08-01 12:50:15 -07:00
..
2008-08-01 12:50:15 -07:00
2008-07-25 10:53:49 -07:00
2008-08-01 19:04:26 +02:00
2008-08-01 11:29:54 -07:00
2008-07-26 12:00:11 -07:00
2008-07-29 22:10:56 +09:00
2008-07-28 16:30:21 -07:00
2008-07-30 09:41:45 -07:00
2008-07-30 10:10:22 +01:00