summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/video/tegra/nvmap/nvmap_handle.c2
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) {