diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2015-08-27 02:47:07 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-09-30 14:10:17 -0400 |
commit | 5b4451cad8875f5d72490db0f8e6776e506f720a (patch) | |
tree | 3e25f5e0924d25ab1bd9344eea3ba184193dd306 /drivers/gpu/nvgpu/gm20b | |
parent | dab594ac13e5ca76d09a9ab383c35ad67c1444ef (diff) |
gpu: nvgpu: prevent extra user unmaps
It is possible that user space requests more unmaps on a buffer
than it requested maps
In this case, we end up dropping one extra refcount which could
lead to releasing buffer early
Fix this by checking and returning if buffer's user_mapped
refcount is already zero
Bug 200130521
Change-Id: Ic8ef2dbfe0476b16d852ad899b1ed0404b5bb7de
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/788904
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
0 files changed, 0 insertions, 0 deletions