]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "virtio_console: Initialize guest_connected=true for rproc_serial"
authorSjur Brændeland <sjur.brandeland@stericsson.com>
Mon, 18 Mar 2013 08:49:14 +0000 (19:19 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 18 Mar 2013 08:50:46 +0000 (19:20 +1030)
commit0a4528a44568cadca78b726ea1cfd7ef7be53628
tree0ad6aacfb51136986e6d3c328e63015c8dee4f11
parente72821df8389ff73c0cb9f09c89094d7325bf8e9
Revert "virtio_console: Initialize guest_connected=true for rproc_serial"

This reverts commit 8f62946456ed4e9bba5c2f0c7456ee119ac560d6, and
adds a lengthy comment explaining the problem area.

The reverted patch caused opening of ports to fail for rproc_serial.
In probe guest_connected was set to true, but port_fops_open()
fails with -EMFILE if guest_connected already is true.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Acked-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c