* [uml-devel] [patch 1/8] uml: avoid NULL dereference in line.c
@ 2005-01-13 5:13 blaisorblade_spam
0 siblings, 0 replies; only message in thread
From: blaisorblade_spam @ 2005-01-13 5:13 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, jdike, user-mode-linux-devel, blaisorblade_spam,
frank
From: Frank Sorenson <frank@tuxrocks.com>
This patch reorders two lines to check a variable for NULL before using
the variable.
Signed-off-by: Frank Sorenson <frank@tuxrocks.com>
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
---
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);
_
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-13 15:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-13 5:13 [uml-devel] [patch 1/8] uml: avoid NULL dereference in line.c blaisorblade_spam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox