driver: tee: Handle NULL pointer indication from client
authorCedric Neveux <cedric.neveux@nxp.com>
Mon, 4 Mar 2019 07:54:23 +0000 (08:54 +0100)
committerJens Wiklander <jens.wiklander@linaro.org>
Fri, 21 Aug 2020 06:55:13 +0000 (08:55 +0200)
commitba171d3f0850003216fd1a85190d17b1feddb961
tree32c534e8e4d18d1e2a9350b7333f53325137c209
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
driver: tee: Handle NULL pointer indication from client

TEE Client introduce a new capability "TEE_GEN_CAP_MEMREF_NULL"
to handle the support of the shared memory buffer with a NULL pointer.

This capability depends on TEE Capabilities and driver support.
Driver and TEE exchange capabilities at driver initialization.

Signed-off-by: Michael Whitfield <michael.whitfield@nxp.com>
Signed-off-by: Cedric Neveux <cedric.neveux@nxp.com>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
Tested-by: Joakim Bech <joakim.bech@linaro.org> (QEMU)
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/core.c
drivers/tee/optee/optee_smc.h
drivers/tee/tee_core.c
include/linux/tee_drv.h
include/uapi/linux/tee.h