virtio: console: Check if port is valid in resize_console
authorAmit Shah <amit.shah@redhat.com>
Fri, 19 Mar 2010 12:06:44 +0000 (17:06 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 22 Mar 2010 12:24:55 +0000 (14:24 +0200)
commit2de16a493cc6153f7fa0b9da12a3862d063e3425
treef649e694f63a6456d7572ec0afc21250c157a3f7
parentec64213c4d482ee4d15b34511441eaecdd002adf
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: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/char/virtio_console.c