commit | a242f426108c284049a69710f871cc9f11b13e61 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@ZenIV.linux.org.uk> | Thu May 09 15:03:33 2013 -0300 |
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | Tue May 21 08:56:56 2013 -0300 |
tree | 0cddab2680085f478cf5c5c5b168143de90e8b30 | |
parent | 0735647c29bca5f33f38fcf457b3b0e9e5912f51 [diff] |
[media] videobuf_vm_{open,close} race fixes just use videobuf_queue_lock(map->q) to protect map->count; vm_area_operations ->open() and ->close() are called just under vma->vm_mm->mmap_sem, which doesn't help the drivers at all, since clonal VMAs are normally in different address spaces... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>