Skip to content
Commit 03315b59 authored by Alexander Beregalov's avatar Alexander Beregalov Committed by Linus Torvalds
Browse files

uml: line.c: avoid NULL pointer dereference



Assign tty only if line is not NULL.

[akpm@linux-foundation.org: simplification]
Signed-off-by: default avatarAlexander Beregalov <a.beregalov@gmail.com>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent be149452
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment