Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755546AbYG3XIz (ORCPT ); Wed, 30 Jul 2008 19:08:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753194AbYG3XIr (ORCPT ); Wed, 30 Jul 2008 19:08:47 -0400 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:34807 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752039AbYG3XIq (ORCPT ); Wed, 30 Jul 2008 19:08:46 -0400 Date: Wed, 30 Jul 2008 23:51:30 +0100 From: Alan Cox To: Eugeniy Meshcheryakov Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] try harder to load tty ldisc driver Message-ID: <20080730235130.32d36046@lxorguk.ukuu.org.uk> In-Reply-To: <20080729204512.GA6242@localhost.localdomain> References: <20080729204512.GA6242@localhost.localdomain> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; x86_64-redhat-linux-gnu) Organization: Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1025 Lines: 25 On Tue, 29 Jul 2008 22:45:12 +0200 Eugeniy Meshcheryakov wrote: > 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 Signed-off-by: Alan Cox (And forwarded to the stable tree too) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/