Commit 77b269fe authored by Frank Sorenson's avatar Frank Sorenson Committed by Linus Torvalds

[PATCH] uml: avoid NULL dereference in line.c

This patch reorders two lines to check a variable for NULL before using 
the variable.
Signed-off-by: default avatarFrank Sorenson <frank@tuxrocks.com>
Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f9adcf4e
...@@ -593,8 +593,8 @@ irqreturn_t winch_interrupt(int irq, void *data, struct pt_regs *unused) ...@@ -593,8 +593,8 @@ irqreturn_t winch_interrupt(int irq, void *data, struct pt_regs *unused)
} }
} }
tty = winch->tty; tty = winch->tty;
line = tty->driver_data;
if (tty != NULL) { if (tty != NULL) {
line = tty->driver_data;
chan_window_size(&line->chan_list, chan_window_size(&line->chan_list,
&tty->winsize.ws_row, &tty->winsize.ws_row,
&tty->winsize.ws_col); &tty->winsize.ws_col);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment