virtio_console: fix uninitialized variable use
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 29 Mar 2017 20:22:04 +0000 (23:22 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 7 Apr 2017 13:39:00 +0000 (16:39 +0300)
commit2055997f983c6db7b5c3940ce5f8f822657d5bc3
tree3cff42099d23a1fe28d45c1ef86e0ff524b99ead
parentfe36cbe0671e868cbd2f534a50ac60273fa5acf2
virtio_console: fix uninitialized variable use

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>
drivers/char/virtio_console.c