Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193036
b: refs/heads/master
c: f35f1bb
h: refs/heads/master
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Mauro Carvalho Chehab committed May 19, 2010
1 parent 681e2b5 commit 85fb191
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: f7fc97adb1efd51609d965ba76d559f7daef4262
refs/heads/master: f35f1bb8fc1e56646a3dab0ecd12e23bca6323c4
6 changes: 3 additions & 3 deletions trunk/drivers/media/video/videobuf-dma-contig.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ static void videobuf_vm_close(struct vm_area_struct *vma)
struct videobuf_queue *q = map->q;
int i;

dev_dbg(map->q->dev, "vm_close %p [count=%u,vma=%08lx-%08lx]\n",
dev_dbg(q->dev, "vm_close %p [count=%u,vma=%08lx-%08lx]\n",
map, map->count, vma->vm_start, vma->vm_end);

map->count--;
if (0 == map->count) {
struct videobuf_dma_contig_memory *mem;

dev_dbg(map->q->dev, "munmap %p q=%p\n", map, q);
dev_dbg(q->dev, "munmap %p q=%p\n", map, q);
mutex_lock(&q->vb_lock);

/* We need first to cancel streams, before unmapping */
Expand All @@ -89,7 +89,7 @@ static void videobuf_vm_close(struct vm_area_struct *vma)
/* vfree is not atomic - can't be
called with IRQ's disabled
*/
dev_dbg(map->q->dev, "buf[%d] freeing %p\n",
dev_dbg(q->dev, "buf[%d] freeing %p\n",
i, mem->vaddr);

dma_free_coherent(q->dev, mem->size,
Expand Down

0 comments on commit 85fb191

Please sign in to comment.