virtio: console: Check if port is valid in resize_console
The console port could have been hot-unplugged. Check if it is valid before working on it. Signed-off-by: NAmit Shah <amit.shah@redhat.com> Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
Showing
想要评论请 注册 或 登录