diff options
author | Bibek Basu <bbasu@nvidia.com> | 2014-07-08 14:24:49 +0530 |
---|---|---|
committer | Matthew Pedro <mapedro@nvidia.com> | 2014-07-31 10:07:19 -0700 |
commit | 30f8d578556191ac90ca5d1ec4cba5f05cd690ce (patch) | |
tree | 8ecf686ff299886c14ea493eecbb5d6e5b3f283a /drivers/video/tegra/host/nvmap.h | |
parent | a7feb27765cf32d7da33659771fd0b2571c87b8d (diff) |
video: tegra: nvhost: validate nvmap_handle_ref
nvhost_job_unpin should always get the nvmap_handle_ref
from rb_entry after validating handle and presence
in the tree.
Bug 1478467
Change-Id: Ibf5f64a1a82fea8adbf7500bdb36b76357776448
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/436076
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/host/nvmap.h')
-rw-r--r-- | drivers/video/tegra/host/nvmap.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/tegra/host/nvmap.h b/drivers/video/tegra/host/nvmap.h index 90f64d44f434..25e3535ce544 100644 --- a/drivers/video/tegra/host/nvmap.h +++ b/drivers/video/tegra/host/nvmap.h @@ -3,7 +3,7 @@ * * Tegra Graphics Host nvmap memory manager * - * Copyright (c) 2010-2012, NVIDIA Corporation. + * Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -23,5 +23,6 @@ struct nvhost_chip_support; int nvhost_init_nvmap_support(struct nvhost_chip_support *op); - +struct mem_handle *nvhost_nvmap_validate_ref(struct mem_mgr *mgr, + struct mem_handle *handle); #endif |