Re: [PATCH 1/1] drivers/tty: check for null pointer

From: Greg KH
Date: Wed Sep 06 2017 - 10:19:01 EST



A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

A: No.
Q: Should I include quotations after my reply?

http://daringfireball.net/2007/07/on_top

On Wed, Sep 06, 2017 at 09:57:20PM +0800, Li, Zhenhua wrote:
> when I tried to boot linux on a system with virtual bios and vortual keyboard,
> it crashes.

What exact "virtual bios and keyboard" are you referring to here? QEMU?
Something else?

> The root cause is the bios does not initialize devices correctly.

How does the bios come into play here? It should not matter, it should
only be a kernel driver that can set this value.

> did not track what drivers called this function.

What was the full oops message? That should show the problem.

And by just rejecting the call here, you are probably just postponing
the real fix from happening, we should resolve that.

thanks,

greg k-h