uml: line.c: avoid NULL pointer dereference
Assign tty only if line is not NULL. [akpm@linux-foundation.org: simplification] Signed-off-by: NAlexander Beregalov <a.beregalov@gmail.com> Cc: Jeff Dike <jdike@addtoit.com> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
Showing
想要评论请 注册 或 登录