diff options
author | Pankaj Gupta <pagupta@redhat.com> | 2019-03-19 07:04:06 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-27 17:28:24 +0100 |
commit | 4b0a2c5ff7215206ea6135a405f17c5f6fca7d00 (patch) | |
tree | c1596a6330ad86f7b62da91fe8f82bf516aeb6f7 /certs | |
parent | vt: use /dev/vcs (not /dev/vcs0) in comment (diff) | |
download | linux-4b0a2c5ff7215206ea6135a405f17c5f6fca7d00.tar.xz linux-4b0a2c5ff7215206ea6135a405f17c5f6fca7d00.zip |
virtio_console: initialize vtermno value for ports
For regular serial ports we do not initialize value of vtermno
variable. A garbage value is assigned for non console ports.
The value can be observed as a random integer with [1].
[1] vim /sys/kernel/debug/virtio-ports/vport*p*
This patch initialize the value of vtermno for console serial
ports to '1' and regular serial ports are initiaized to '0'.
Reported-by: siliu@redhat.com
Signed-off-by: Pankaj Gupta <pagupta@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions