Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757175Ab0GFCYX (ORCPT ); Mon, 5 Jul 2010 22:24:23 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:36221 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756980Ab0GFCYV (ORCPT ); Mon, 5 Jul 2010 22:24:21 -0400 Date: Mon, 05 Jul 2010 19:24:34 -0700 (PDT) Message-Id: <20100705.192434.58441475.davem@davemloft.net> To: tilman@imap.cc Cc: isdn@linux-pingi.de, hjlipp@web.de, keil@b1-systems.de, i4ldeveloper@listserv.isdn4linux.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 2/2] isdn: avoid calling tty_ldisc_flush() in atomic context From: David Miller In-Reply-To: <20100705-patch-isdn-02.tilman@imap.cc> References: <20100705-patch-isdn-00.tilman@imap.cc> <20100705-patch-isdn-02.tilman@imap.cc> X-Mailer: Mew version 6.3 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) 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: 905 Lines: 21 From: Tilman Schmidt Date: Tue, 6 Jul 2010 02:18:27 +0200 (CEST) > Remove the call to tty_ldisc_flush() from the RESULT_NO_CARRIER > branch of isdn_tty_modem_result(), as already proposed in commit > 00409bb045887ec5e7b9e351bc080c38ab6bfd33. > This avoids a "sleeping function called from invalid context" BUG > when the hardware driver calls the statcallb() callback with > command==ISDN_STAT_DHUP in atomic context, which in turn calls > isdn_tty_modem_result(RESULT_NO_CARRIER, ~), and from there, > tty_ldisc_flush() which may sleep. > > Impact: bugfix > Signed-off-by: Tilman Schmidt Applied to net-next-2.6, thanks. -- 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/