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