Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273208
b: refs/heads/master
c: a08fa92
h: refs/heads/master
v: v3
  • Loading branch information
Amit Shah authored and Rusty Russell committed Nov 2, 2011
1 parent f2fed80 commit 2669afb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 291024ef351328e7b4ca6bae798abc816a43653c
refs/heads/master: a08fa92d16f2fa112e3400c6c513d23ae78b960a
9 changes: 5 additions & 4 deletions trunk/drivers/char/virtio_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/debugfs.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/freezer.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/list.h>
Expand Down Expand Up @@ -633,8 +634,8 @@ static ssize_t port_fops_read(struct file *filp, char __user *ubuf,
if (filp->f_flags & O_NONBLOCK)
return -EAGAIN;

ret = wait_event_interruptible(port->waitqueue,
!will_read_block(port));
ret = wait_event_freezable(port->waitqueue,
!will_read_block(port));
if (ret < 0)
return ret;
}
Expand Down Expand Up @@ -677,8 +678,8 @@ static ssize_t port_fops_write(struct file *filp, const char __user *ubuf,
if (nonblock)
return -EAGAIN;

ret = wait_event_interruptible(port->waitqueue,
!will_write_block(port));
ret = wait_event_freezable(port->waitqueue,
!will_write_block(port));
if (ret < 0)
return ret;
}
Expand Down

0 comments on commit 2669afb

Please sign in to comment.