mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Alexey Zaytsev" <alexey.zaytsev@gmail.com>
To: "Alan Cox" <alan@lxorguk.ukuu.org.uk>
Cc: lkml <linux-kernel@vger.kernel.org>,
	"Linus Torvalds" <torvalds@linux-foundation.org>
Subject: Re: commit a352def21a642133758b868c71bee12ab34ad5c5 broke pptp.
Date: Thu, 31 Jul 2008 00:11:34 +0400	[thread overview]
Message-ID: <f19298770807301311j1c742979je87ec7edfbf85173@mail.gmail.com> (raw)
In-Reply-To: <f19298770807280350r79b2811er79061bb4fa363369@mail.gmail.com>

On Mon, Jul 28, 2008 at 2:50 PM, Alexey Zaytsev
<alexey.zaytsev@gmail.com> wrote:
> On Wed, Jul 23, 2008 at 10:11 PM, Alexey Zaytsev
> <alexey.zaytsev@gmail.com> wrote:
>> Hello.
>>
>>
>> Pptp breaks for me on the current git (c010b2f76):
>>
>> root@nx:~# pppd call semunlim defaultroute nodetach debug
>> Couldn't set tty to PPP discipline: Invalid argument
>> Waiting for 1 child processes...
>>  script pptp 172.18.2.2 --nolaunchpppd, pid 4359
>> root@nx:~#
>>
>> It bisects to:
>> a352def21a642133758b868c71bee12ab34ad5c5 tty: Ldisc revamp
>>
>> Revetring this commit, along with
>> 7a4d29f426f17479395980ded8fa5e3bdd6d94e4
>> and 01e1abb2c27e43339b8829a2e3b1c6f53806b77a fixes the problem.
>>
>
> Still there (c9272c4f). Could you maybe revert this for the -rc1? If not the
> problem, this would probably be the first -rc1 ever that actually
> works for me. ;)
>

Hai, I fixd ur kernel.
The problem was with the screwd up ldisc modules autoloading.
Pls apply the patch. Kthx bai.


    Fix ldisc module autoloading.

    Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>

diff --git a/drivers/char/tty_ldisc.c b/drivers/char/tty_ldisc.c
index 241cbde..a858893 100644
--- a/drivers/char/tty_ldisc.c
+++ b/drivers/char/tty_ldisc.c
@@ -164,14 +164,16 @@ static int tty_ldisc_try_get(int disc, struct
tty_ldisc *ld)

 static int tty_ldisc_get(int disc, struct tty_ldisc *ld)
 {
-       int err;
+       int err = 0;

        if (disc < N_TTY || disc >= NR_LDISCS)
                return -EINVAL;
-       err = tty_ldisc_try_get(disc, ld);
-       if (err == -EAGAIN) {
-               request_module("tty-ldisc-%d", disc);
-               err = tty_ldisc_try_get(disc, ld);
+       tty_ldisc_try_get(disc, ld);
+       if (!ld->ops) {
+               do {
+                       request_module("tty-ldisc-%d", disc);
+                       err = tty_ldisc_try_get(disc, ld);
+               } while (err == -EAGAIN);
        }
        return err;
 }

  reply	other threads:[~2008-07-30 20:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-23 18:11 Alexey Zaytsev
2008-07-28 10:50 ` Alexey Zaytsev
2008-07-30 20:11   ` Alexey Zaytsev [this message]
2008-07-30 22:49     ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f19298770807301311j1c742979je87ec7edfbf85173@mail.gmail.com \
    --to=alexey.zaytsev@gmail.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®