]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tee: allow a driver to allocate a tee_device without a pool
authorAmirreza Zarrabi <amirreza.zarrabi@oss.qualcomm.com>
Fri, 12 Sep 2025 04:07:42 +0000 (21:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2025 11:45:07 +0000 (12:45 +0100)
commitadf5bf933442c95d3321f92df6e735eb0dcce099
tree9a259b5bf6acf4b3fdda465fe0c245f6eec0e82f
parent53b9a6fb219e484340fb37a106fd7943e948062c
tee: allow a driver to allocate a tee_device without a pool

[ Upstream commit 6dbcd5a9ab6cb6644e7d728521da1c9035ec7235 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tee/tee_core.c