Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210856
b: refs/heads/master
c: 6574542
h: refs/heads/master
v: v3
  • Loading branch information
Amit Shah authored and Rusty Russell committed Sep 21, 2010
1 parent 8c5edcb commit 77cd6d5
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: 6df7aadcd9290807c464675098b5dd2dc9da5075
refs/heads/master: 65745422a898741ee0e7068ef06624ab06e8aefa
4 changes: 4 additions & 0 deletions trunk/drivers/char/virtio_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,10 @@ static ssize_t port_fops_write(struct file *filp, const char __user *ubuf,
ssize_t ret;
bool nonblock;

/* Userspace could be out to fool us */
if (!count)
return 0;

port = filp->private_data;

nonblock = filp->f_flags & O_NONBLOCK;
Expand Down

0 comments on commit 77cd6d5

Please sign in to comment.