summaryrefslogtreecommitdiff
path: root/drivers/media/pci/zoran/zoran.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-05-23 08:38:22 (GMT)
committerAl Viro <viro@zeniv.linux.org.uk>2013-05-31 19:33:32 (GMT)
commit4ad1f70ebcdb69393ce083f514bf4a4a3a3e65cb (patch)
tree686f96672a8432dffe178a155891e1806e083713 /drivers/media/pci/zoran/zoran.h
parent448293aadb54ab38b9c053bf9f1eecafdc0ed214 (diff)
downloadlinux-fsl-qoriq-4ad1f70ebcdb69393ce083f514bf4a4a3a3e65cb.tar.xz
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 ca2754a..5e04008 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 {