aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/videobuf-vmalloc.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/media/video/videobuf-vmalloc.c
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (diff)
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts: litmus/sched_cedf.c
Diffstat (limited to 'drivers/media/video/videobuf-vmalloc.c')
-rw-r--r--drivers/media/video/videobuf-vmalloc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/media/video/videobuf-vmalloc.c b/drivers/media/video/videobuf-vmalloc.c
index e7fe31d54f07..df142580e44c 100644
--- a/drivers/media/video/videobuf-vmalloc.c
+++ b/drivers/media/video/videobuf-vmalloc.c
@@ -75,7 +75,7 @@ static void videobuf_vm_close(struct vm_area_struct *vma)
75 struct videobuf_vmalloc_memory *mem; 75 struct videobuf_vmalloc_memory *mem;
76 76
77 dprintk(1, "munmap %p q=%p\n", map, q); 77 dprintk(1, "munmap %p q=%p\n", map, q);
78 mutex_lock(&q->vb_lock); 78 videobuf_queue_lock(q);
79 79
80 /* We need first to cancel streams, before unmapping */ 80 /* We need first to cancel streams, before unmapping */
81 if (q->streaming) 81 if (q->streaming)
@@ -114,7 +114,7 @@ static void videobuf_vm_close(struct vm_area_struct *vma)
114 114
115 kfree(map); 115 kfree(map);
116 116
117 mutex_unlock(&q->vb_lock); 117 videobuf_queue_unlock(q);
118 } 118 }
119 119
120 return; 120 return;
@@ -304,10 +304,11 @@ void videobuf_queue_vmalloc_init(struct videobuf_queue *q,
304 enum v4l2_buf_type type, 304 enum v4l2_buf_type type,
305 enum v4l2_field field, 305 enum v4l2_field field,
306 unsigned int msize, 306 unsigned int msize,
307 void *priv) 307 void *priv,
308 struct mutex *ext_lock)
308{ 309{
309 videobuf_queue_core_init(q, ops, dev, irqlock, type, field, msize, 310 videobuf_queue_core_init(q, ops, dev, irqlock, type, field, msize,
310 priv, &qops); 311 priv, &qops, ext_lock);
311} 312}
312EXPORT_SYMBOL_GPL(videobuf_queue_vmalloc_init); 313EXPORT_SYMBOL_GPL(videobuf_queue_vmalloc_init);
313 314