]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/hvc: handle backend CLOSED without CLOSING
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 21 Sep 2012 16:04:24 +0000 (17:04 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 4 Dec 2012 17:44:33 +0000 (12:44 -0500)
commit63831af049a1f4896d2cffe5fb94afe051801e92
tree56491891dfa7ab00bcf9bf5d864e5144f4b17b96
parent99f8e13a93c4e704acb6a9a1f0b419509e3ace9d
xen/hvc: handle backend CLOSED without CLOSING

Backend drivers shouldn't transistion to CLOSED unless the frontend is
CLOSED.  If a backend does transition to CLOSED too soon then the
frontend may not see the CLOSING state and will not properly shutdown.

So, treat an unexpected backend CLOSED state the same as CLOSING.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit 9b6934a3b449266850149b717597408354039e95)
drivers/tty/hvc/hvc_xen.c