summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Wright <awright@nvidia.com>2010-10-12 17:23:43 -0700
committerVarun Colbert <vcolbert@nvidia.com>2010-10-15 15:51:07 -0700
commit80e2d4752c5f291d8a63d537f89be14e25a4626c (patch)
tree1ae313569a844685bb29d3838fede435e8f0d1f4
parent7e5e54136472ab0170eeb5d9c1992ffed9bb0920 (diff)
[ARM/Tegra] nvhost : unpin context memory handle before freeing
Bug 731923 Reviewed-on: http://git-master/r/7002 (cherry picked from commit b927a389930941297f987cc7967d10d319deba6b) Change-Id: I576de9b2dfd4245f471ca26636a146ead3df021b Reviewed-on: http://git-master.nvidia.com/r/8430 Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com> Tested-by: Andrew Wright <awright@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
-rw-r--r--drivers/video/tegra/host/nvhost_3dctx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/tegra/host/nvhost_3dctx.c b/drivers/video/tegra/host/nvhost_3dctx.c
index 57e39ce9d319..1e409ed30dab 100644
--- a/drivers/video/tegra/host/nvhost_3dctx.c
+++ b/drivers/video/tegra/host/nvhost_3dctx.c
@@ -429,6 +429,7 @@ static struct nvhost_hwctx *ctx3d_alloc(struct nvhost_channel *ch)
static void ctx3d_free(struct kref *ref)
{
struct nvhost_hwctx *ctx = container_of(ref, struct nvhost_hwctx, ref);
+ nvmap_unpin(&ctx->restore, 1);
nvmap_free(ctx->restore, ctx->save_cpu_data);
kfree(ctx);
}