Skip to content

Commit 8c87286

Browse files
andy-shevJarkko Sakkinen
authored andcommitted
tpm/tpm_ftpm_tee: 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. Signed-off-by: Andy Shevchenko <[email protected]> Acked-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
1 parent 051143e commit 8c87286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/char/tpm/tpm_ftpm_tee.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ static int ftpm_tee_probe(struct platform_device *pdev)
241241

242242
/* Open a session with fTPM TA */
243243
memset(&sess_arg, 0, sizeof(sess_arg));
244-
memcpy(sess_arg.uuid, ftpm_ta_uuid.b, TEE_IOCTL_UUID_LEN);
244+
export_uuid(sess_arg.uuid, &ftpm_ta_uuid);
245245
sess_arg.clnt_login = TEE_IOCTL_LOGIN_PUBLIC;
246246
sess_arg.num_params = 0;
247247

0 commit comments

Comments
 (0)