Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211647
b: refs/heads/master
c: b3dddb9
h: refs/heads/master
i:
  211645: f8a1c12
  211643: da64643
  211639: ad7ff58
  211631: a01ca05
  211615: d110b1e
  211583: b6c4a79
v: v3
  • Loading branch information
Amit Shah authored and Rusty Russell committed Oct 21, 2010
1 parent cf8a080 commit 48b5452
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 8529a504273d4efa6bb004dcd6ef28fe67b64ae9
refs/heads/master: b3dddb9e6ddab74327f5557c1a6640ea0f56ad1c
3 changes: 3 additions & 0 deletions trunk/drivers/char/virtio_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,9 @@ static ssize_t port_fops_read(struct file *filp, char __user *ubuf,
if (ret < 0)
return ret;
}
/* Port got hot-unplugged. */
if (!port->guest_connected)
return -ENODEV;
/*
* We could've received a disconnection message while we were
* waiting for more data.
Expand Down

0 comments on commit 48b5452

Please sign in to comment.