Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76739
b: refs/heads/master
c: 1f8d300
h: refs/heads/master
i:
  76737: 39693d4
  76735: e2597d1
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Jan 25, 2008
1 parent d4dd0e4 commit 92df7d7
Show file tree
Hide file tree
Showing 2 changed files with 9 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: dfd8c04ec14b88bc2849e62d6ff9e36f31352b60
refs/heads/master: 1f8d30083abc17897b897787c39d446eb9d99fe0
12 changes: 8 additions & 4 deletions trunk/drivers/media/video/videobuf-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,14 @@ int videobuf_iolock(struct videobuf_queue *q, struct videobuf_buffer *vb,
since mmap_mapper() method should be called before _iolock.
On some cases, the mmap_mapper() is called only after scheduling.
*/
wait_event_timeout(vb->done, q->is_mmapped, msecs_to_jiffies(100));
if (!q->is_mmapped) {
printk(KERN_ERR "Error: mmap_mapper() never called!\n");
return -EINVAL;
if (vb->memory == V4L2_MEMORY_MMAP) {
wait_event_timeout(vb->done, q->is_mmapped,
msecs_to_jiffies(100));
if (!q->is_mmapped) {
printk(KERN_ERR
"Error: mmap_mapper() never called!\n");
return -EINVAL;
}
}

return CALL(q, iolock, q, vb, fbuf);
Expand Down

0 comments on commit 92df7d7

Please sign in to comment.