hvc/xen: fix error path in xen_hvc_init() to always register frontend driver
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 20 Oct 2023 16:15:28 +0000 (17:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Oct 2023 16:33:02 +0000 (18:33 +0200)
commit2704c9a5593f4a47620c12dad78838ca62b52f48
treec357df07712ea4b2242e0f2c9680a92bd4f151bf
parentef5dd8ec88ac11e8e353164407d55b73c988b369
hvc/xen: fix error path in xen_hvc_init() to always register frontend driver

The xen_hvc_init() function should always register the frontend driver,
even when there's no primary console — as there may be secondary consoles.
(Qemu can always add secondary consoles, but only the toolstack can add
the primary because it's special.)

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Juergen Gross <jgross@suse.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20231020161529.355083-3-dwmw2@infradead.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_xen.c