]> git.baikalelectronics.ru Git - kernel.git/commit
optee: use export_uuid() to copy client UUID
authorJens Wiklander <jens.wiklander@linaro.org>
Mon, 19 Apr 2021 16:46:30 +0000 (18:46 +0200)
committerJens Wiklander <jens.wiklander@linaro.org>
Tue, 18 May 2021 05:59:27 +0000 (07:59 +0200)
commit0b4a9bad4be6bbbc6f085ba27290925d197aa091
tree56b164e049a39e264742cfe11bdb815938cfcb8b
parent78f0a5f86683713bf30eae653c023ab078a37264
optee: use export_uuid() to copy client UUID

Prior to this patch optee_open_session() was making assumptions about
the internal format of uuid_t by casting a memory location in a
parameter struct to uuid_t *. Fix this using export_uuid() to get a well
defined binary representation and also add an octets field in struct
optee_msg_param in order to avoid casting.

Fixes: eda71ac776ee ("tee: optee: Add support for session login client UUID generation")
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/call.c
drivers/tee/optee/optee_msg.h