diff options
author | Eugeniy Meshcheryakov <[email protected]> | 2008-07-31 10:03:19 +0100 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2008-08-01 12:50:15 -0700 |
commit | 3ab36ab68531ad90648fdeedcaf437f121572ede (patch) | |
tree | 9a61fb71173caff9fdf29a9d3f3626d5c0fa26ef /net/unix/sysctl_net_unix.c | |
parent | 84ff7a001270258f71d6ab0d164f351e32c9718a (diff) |
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 <[email protected]>
Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions