Home
last modified time | relevance | path

Searched hist:"4 b0a2c5f" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/char/
H A Dvirtio_console.c4b0a2c5f Tue Mar 19 01:04:06 CDT 2019 Pankaj Gupta <pagupta@redhat.com> 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>
4b0a2c5f Tue Mar 19 01:04:06 CDT 2019 Pankaj Gupta <pagupta@redhat.com> 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>