Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188892
b: refs/heads/master
c: 2de16a4
h: refs/heads/master
v: v3
  • Loading branch information
Amit Shah authored and Michael S. Tsirkin committed Mar 22, 2010
1 parent 277d7d4 commit 6b4affa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ec64213c4d482ee4d15b34511441eaecdd002adf
refs/heads/master: 2de16a493cc6153f7fa0b9da12a3862d063e3425
4 changes: 4 additions & 0 deletions trunk/drivers/char/virtio_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,10 @@ static void resize_console(struct port *port)
struct virtio_device *vdev;
struct winsize ws;

/* The port could have been hot-unplugged */
if (!port)
return;

vdev = port->portdev->vdev;
if (virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) {
vdev->config->get(vdev,
Expand Down

0 comments on commit 6b4affa

Please sign in to comment.