From: Al Viro Date: Thu, 9 May 2013 18:03:33 +0000 (-0300) Subject: [media] videobuf_vm_{open,close} race fixes X-Git-Tag: v3.11-rc1~17^2~344 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a242f426108c284049a69710f871cc9f11b13e61;p=pandora-kernel.git [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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed