Skip to content

Commit

Permalink
tpm/tpm_ftpm_tee: Use UUID API for exporting the UUID
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
andy-shev authored and Jarkko Sakkinen committed May 22, 2020
1 parent 051143e commit 8c87286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/tpm/tpm_ftpm_tee.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ static int ftpm_tee_probe(struct platform_device *pdev)

/* Open a session with fTPM TA */
memset(&sess_arg, 0, sizeof(sess_arg));
memcpy(sess_arg.uuid, ftpm_ta_uuid.b, TEE_IOCTL_UUID_LEN);
export_uuid(sess_arg.uuid, &ftpm_ta_uuid);
sess_arg.clnt_login = TEE_IOCTL_LOGIN_PUBLIC;
sess_arg.num_params = 0;

Expand Down

0 comments on commit 8c87286

Please sign in to comment.