| commit | 77168509413290772d05416cb925c2109b58fb8a | [log] [tgz] |
|---|---|---|
| author | Laura Abbott <lauraa@codeaurora.org> | Mon Dec 05 11:06:24 2011 -0800 |
| committer | Laura Abbott <lauraa@codeaurora.org> | Wed Dec 07 15:07:00 2011 -0800 |
| tree | 886fe809077d323c49d16c75b25f62fe1a1862fe | |
| parent | b9599f1d4d913ecc85cdd0ebe16dee8210120753 [diff] |
gpu: ion: Incrememnt user refcount during vma_open/vma_close Ion allows multiple mmaps of the same buffers. This means that incrementing the usermap count in mmap and decrementing it in release is not sufficient as release will only ever be called once. Fix this by only doing the reference count change in the vma_open and close which are called whenever mmap is called. Change-Id: I6d17c0f563d0b90481d8e092c1e206f2b33c8e00 Signed-off-by: Laura Abbott <lauraa@codeaurora.org>