diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-23 04:38:22 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-31 15:33:32 -0400 |
commit | 4ad1f70ebcdb69393ce083f514bf4a4a3a3e65cb (patch) | |
tree | 686f96672a8432dffe178a155891e1806e083713 /drivers/media/pci/zoran/zoran.h | |
parent | 448293aadb54ab38b9c053bf9f1eecafdc0ed214 (diff) | |
download | lwn-4ad1f70ebcdb69393ce083f514bf4a4a3a3e65cb.tar.gz lwn-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.h | 2 |
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 { |