Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311259
b: refs/heads/master
c: d9762df
h: refs/heads/master
i:
  311257: 54958ab
  311255: 064e5d0
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jun 11, 2012
1 parent c9df3a3 commit bded38d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: af03891f61d7b69eebc79d07bf580faaa9636fbc
refs/heads/master: d9762df4a9d0e412b6676a96135323d6924406b8
6 changes: 5 additions & 1 deletion trunk/drivers/media/video/vivi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1149,10 +1149,14 @@ static ssize_t
vivi_read(struct file *file, char __user *data, size_t count, loff_t *ppos)
{
struct vivi_dev *dev = video_drvdata(file);
int err;

dprintk(dev, 1, "read called\n");
return vb2_read(&dev->vb_vidq, data, count, ppos,
mutex_lock(&dev->mutex);
err = vb2_read(&dev->vb_vidq, data, count, ppos,
file->f_flags & O_NONBLOCK);
mutex_unlock(&dev->mutex);
return err;
}

static unsigned int
Expand Down

0 comments on commit bded38d

Please sign in to comment.