diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2011-11-09 09:26:12 +0200 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:49:54 -0800 |
commit | 359126445d3562cd8923ca9bd3c73258ebf5760a (patch) | |
tree | e4dc43e769ecbc60fc1a1b8541b00bbb2f34d8f6 /drivers | |
parent | fba3d4b20e16b2d7052a693cc07daf0c32c988bd (diff) |
video: tegra: host: Save timed out contexts
Do not access the timeout struct during context save. The timeout struct
is part of userctx, and it might be already deallocated.
Bug 896579
Change-Id: Id72931aa7350e0219d64f8c6f4dcc8d6847f5cb9
Reviewed-on: http://git-master/r/63207
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: Raab50bca6333ac72e1383851ce0e7cf01731f3ec
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/tegra/host/nvhost_intr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/host/nvhost_intr.c b/drivers/video/tegra/host/nvhost_intr.c index 4b6efca72884..1a1a9b3fa4c3 100644 --- a/drivers/video/tegra/host/nvhost_intr.c +++ b/drivers/video/tegra/host/nvhost_intr.c @@ -144,7 +144,7 @@ static void action_ctxsave(struct nvhost_waitlist *waiter) struct nvhost_hwctx *hwctx = waiter->data; struct nvhost_channel *channel = hwctx->channel; - if (channel->ctxhandler.save_service && !hwctx->timeout->has_timedout) + if (channel->ctxhandler.save_service) channel->ctxhandler.save_service(hwctx); channel->ctxhandler.put(hwctx); } |