summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBibek Basu <bbasu@nvidia.com>2014-07-08 14:24:49 +0530
committerMatthew Pedro <mapedro@nvidia.com>2014-07-31 10:07:19 -0700
commit30f8d578556191ac90ca5d1ec4cba5f05cd690ce (patch)
tree8ecf686ff299886c14ea493eecbb5d6e5b3f283a /include
parenta7feb27765cf32d7da33659771fd0b2571c87b8d (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 'include')
-rw-r--r--include/linux/nvmap.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/nvmap.h b/include/linux/nvmap.h
index 9cc978ec5a7f..c805f4c1dc07 100644
--- a/include/linux/nvmap.h
+++ b/include/linux/nvmap.h
@@ -3,7 +3,7 @@
*
* structure declarations for nvmem and nvmap user-space ioctls
*
- * Copyright (c) 2009-2012, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2009-2014, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -126,6 +126,9 @@ struct nvmap_handle_ref *nvmap_duplicate_handle_id(struct nvmap_client *client,
int nvmap_mark_global(struct nvmap_client *client, struct nvmap_handle_ref *r);
+unsigned long nvmap_validate_ref(struct nvmap_client *client,
+ struct nvmap_handle_ref *r);
+
struct nvmap_platform_carveout {
const char *name;
unsigned int usage_mask;