aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/zoran/zoran.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-05-23 04:38:22 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-05-31 15:33:32 -0400
commit4ad1f70ebcdb69393ce083f514bf4a4a3a3e65cb (patch)
tree686f96672a8432dffe178a155891e1806e083713 /drivers/media/pci/zoran/zoran.h
parentbefs_readdir(): do not increment ->f_pos if filldir tells us to stop (diff)
downloadlinux-dev-4ad1f70ebcdb69393ce083f514bf4a4a3a3e65cb.tar.xz
linux-dev-4ad1f70ebcdb69393ce083f514bf4a4a3a3e65cb.zip
zoran: racy refcount handling in vm_ops ->open()/->close()
worse, we lock ->resource_lock too late when we are destroying the final clonal VMA; the check for lack of other mappings of the same opened file can race with mmap(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/media/pci/zoran/zoran.h')
-rw-r--r--drivers/media/pci/zoran/zoran.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/zoran/zoran.h b/drivers/media/pci/zoran/zoran.h
index ca2754a3cd63..5e040085c2ff 100644
--- a/drivers/media/pci/zoran/zoran.h
+++ b/drivers/media/pci/zoran/zoran.h
@@ -176,7 +176,7 @@ struct zoran_fh;
struct zoran_mapping {
struct zoran_fh *fh;
- int count;
+ atomic_t count;
};
struct zoran_buffer {