From: Andy Shevchenko Date: Wed, 22 Apr 2020 13:00:47 +0000 (+0300) Subject: tee: optee: Use UUID API for exporting the UUID X-Git-Tag: 5.11-rc-smb3-part2~23^2~28^2 X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=57222a1be27e06ecb81cc2f945e897814d5f461c;p=sfrench%2Fcifs-2.6.git tee: optee: Use UUID API for exporting the UUID There is export_uuid() function which exports uuid_t to the u8 array. Use it instead of open coding variant. This allows to hide the uuid_t internals. Reviewed-by: Sumit Garg Signed-off-by: Andy Shevchenko Signed-off-by: Jens Wiklander --- diff --git a/drivers/tee/optee/device.c b/drivers/tee/optee/device.c index 7a897d51969f..ec1d24693eba 100644 --- a/drivers/tee/optee/device.c +++ b/drivers/tee/optee/device.c @@ -98,7 +98,7 @@ static int __optee_enumerate_devices(u32 func) return -ENODEV; /* Open session with device enumeration pseudo TA */ - memcpy(sess_arg.uuid, pta_uuid.b, TEE_IOCTL_UUID_LEN); + export_uuid(sess_arg.uuid, &pta_uuid); sess_arg.clnt_login = TEE_IOCTL_LOGIN_PUBLIC; sess_arg.num_params = 0;