Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261658AbVAMPdI (ORCPT ); Thu, 13 Jan 2005 10:33:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261654AbVAMPbl (ORCPT ); Thu, 13 Jan 2005 10:31:41 -0500 Received: from www.ssc.unict.it ([151.97.230.9]:58628 "HELO ssc.unict.it") by vger.kernel.org with SMTP id S261655AbVAMPbH (ORCPT ); Thu, 13 Jan 2005 10:31:07 -0500 Subject: [patch 1/8] uml: avoid NULL dereference in line.c To: akpm@osdl.org Cc: linux-kernel@vger.kernel.org, jdike@addtoit.com, user-mode-linux-devel@lists.sourceforge.net, blaisorblade_spam@yahoo.it, frank@tuxrocks.com From: blaisorblade_spam@yahoo.it Date: Thu, 13 Jan 2005 06:13:24 +0100 Message-Id: <20050113051325.63FB163245@zion> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1134 Lines: 32 From: Frank Sorenson This patch reorders two lines to check a variable for NULL before using the variable. Signed-off-by: Frank Sorenson Signed-off-by: Paolo 'Blaisorblade' Giarrusso --- linux-2.6.11-paolo/arch/um/drivers/line.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN arch/um/drivers/line.c~uml-reorder_null_check arch/um/drivers/line.c --- linux-2.6.11/arch/um/drivers/line.c~uml-reorder_null_check 2005-01-13 01:54:17.163057872 +0100 +++ linux-2.6.11-paolo/arch/um/drivers/line.c 2005-01-13 01:54:17.166057416 +0100 @@ -593,8 +593,8 @@ irqreturn_t winch_interrupt(int irq, voi } } tty = winch->tty; - line = tty->driver_data; if (tty != NULL) { + line = tty->driver_data; chan_window_size(&line->chan_list, &tty->winsize.ws_row, &tty->winsize.ws_col); _ - 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/