virtio_console: fix uninitialized variable use
commitba9e2c1190a6b193ba2256a6810c8204ee5d08c3
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 29 Mar 2017 20:22:04 +0000 (29 23:22 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Nov 2019 17:26:22 +0000 (28 18:26 +0100)
treebe5f1ac999829f44be6537f485bea4bf37d20753
parentabdd31f3744ef8b6c7aa4178ed7fec3070ef29d3
virtio_console: fix uninitialized variable use

[ Upstream commit 2055997f983c6db7b5c3940ce5f8f822657d5bc3 ]

We try to disable callbacks on c_ivq even without multiport
even though that vq is not initialized in this configuration.

Fixes: c743d09dbd01 ("virtio: console: Disable callbacks for virtqueues at start of S4 freeze")
Suggested-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/char/virtio_console.c