summaryrefslogtreecommitdiffstats
path: root/drivers/tee/tee_private.h
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2019-11-07 11:42:56 +0100
committerJens Wiklander <jens.wiklander@linaro.org>2020-02-28 13:37:42 +0100
commitf1bbacedb0af640a93e47799203e556be2825da3 (patch)
tree6aaf4d8f1f678cb199626eef0b7404f5e499deae /drivers/tee/tee_private.h
parenttee: remove unused tee_shm_priv_alloc() (diff)
downloadlinux-f1bbacedb0af640a93e47799203e556be2825da3.tar.xz
linux-f1bbacedb0af640a93e47799203e556be2825da3.zip
tee: don't assign shm id for private shms
Private shared memory object must not be referenced from user space. To guarantee that, don't assign an id to shared memory objects which are driver private. Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'drivers/tee/tee_private.h')
-rw-r--r--drivers/tee/tee_private.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tee/tee_private.h b/drivers/tee/tee_private.h
index f797171f0434..e55204df31ce 100644
--- a/drivers/tee/tee_private.h
+++ b/drivers/tee/tee_private.h
@@ -37,7 +37,8 @@ struct tee_shm_pool {
* @num_users: number of active users of this device
* @c_no_user: completion used when unregistering the device
* @mutex: mutex protecting @num_users and @idr
- * @idr: register of shared memory object allocated on this device
+ * @idr: register of user space shared memory objects allocated or
+ * registered on this device
* @pool: shared memory pool
*/
struct tee_device {