diff options
author | vdumpa <vdumpa@nvidia.com> | 2011-06-08 17:42:19 -0700 |
---|---|---|
committer | Bharat Nihalani <bnihalani@nvidia.com> | 2011-06-08 23:20:17 -0700 |
commit | 89727af63f585fa8f8473448e8efa78cf84d37d4 (patch) | |
tree | 17d3d8b3d256c3845ea8fa772381ea9ba33de025 /drivers/video/tegra/nvmap | |
parent | c8d283eabbf585a3482ec3bfaf6da6b9d36f3f5b (diff) |
video: tegra: nvmap: Fix iovm_commit accounting issue.tegra-12r1
Bug 835748
Reviewed on http://git-master/r/#change,35792
Change-Id: I2bc8f330df853cf91c661c2a821c6199de43f7f9
Reviewed-on: http://git-master/r/35837
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/nvmap')
-rw-r--r-- | drivers/video/tegra/nvmap/nvmap_handle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/nvmap/nvmap_handle.c b/drivers/video/tegra/nvmap/nvmap_handle.c index 3b1c2ee06b10..3bc9ba3d62d0 100644 --- a/drivers/video/tegra/nvmap/nvmap_handle.c +++ b/drivers/video/tegra/nvmap/nvmap_handle.c @@ -412,7 +412,7 @@ void nvmap_free_handle_id(struct nvmap_client *client, unsigned long id) pins = atomic_read(&ref->pin); rb_erase(&ref->node, &client->handle_refs); - if (h->alloc && h->heap_pgalloc && !h->pgalloc.contig) + if (h->alloc && h->heap_pgalloc && !h->pgalloc.contig && !client->super) atomic_sub(h->size, &client->iovm_commit); if (h->alloc && !h->heap_pgalloc) { |