Skip to content

Commit 6dbcd5a

Browse files
qc-azarrabijenswi-linaro
authored andcommitted
tee: allow a driver to allocate a tee_device without a pool
A TEE driver doesn't always need to provide a pool if it doesn't support memory sharing ioctls and can allocate memory for TEE messages in another way. Although this is mentioned in the documentation for tee_device_alloc(), it is not handled correctly. Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com> Signed-off-by: Amirreza Zarrabi <amirreza.zarrabi@oss.qualcomm.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
1 parent 36629d5 commit 6dbcd5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/tee/tee_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ struct tee_device *tee_device_alloc(const struct tee_desc *teedesc,
963963

964964
if (!teedesc || !teedesc->name || !teedesc->ops ||
965965
!teedesc->ops->get_version || !teedesc->ops->open ||
966-
!teedesc->ops->release || !pool)
966+
!teedesc->ops->release)
967967
return ERR_PTR(-EINVAL);
968968

969969
teedev = kzalloc(sizeof(*teedev), GFP_KERNEL);

0 commit comments

Comments
 (0)