projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be14945
)
uml: line.c: avoid NULL pointer dereference
author
Alexander Beregalov
<
[email protected]
>
Fri, 5 Mar 2010 21:42:33 +0000
(13:42 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 6 Mar 2010 19:26:28 +0000
(11:26 -0800)
Assign tty only if line is not NULL.
[
[email protected]
: simplification]
Signed-off-by: Alexander Beregalov <
[email protected]
>
Cc: Jeff Dike <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/um/drivers/line.c
patch
|
blob
|
history
diff --git
a/arch/um/drivers/line.c
b/arch/um/drivers/line.c
index cf8a97f3451856665b11fdb6172b67953d6ee513..64cda95f59ca35db49675b90c8b8f1d6447f5c16 100644
(file)
--- a/
arch/um/drivers/line.c
+++ b/
arch/um/drivers/line.c
@@
-18,10
+18,10
@@
static irqreturn_t line_interrupt(int irq, void *data)
{
struct chan *chan = data;
struct line *line = chan->line;
- struct tty_struct *tty
= line->tty
;
+ struct tty_struct *tty;
if (line)
- chan_interrupt(&line->chan_list, &line->task, tty, irq);
+ chan_interrupt(&line->chan_list, &line->task,
line->
tty, irq);
return IRQ_HANDLED;
}