From 9b54bc536bd52e689f4ec69703fcf1a1e3b5fc46 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 19 Feb 2018 20:31:04 -0800 Subject: [PATCH] Add missing userToSecure args in smcComputeCmac --- exosphere/smc_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exosphere/smc_user.c b/exosphere/smc_user.c index 1371baa1b..c1b358248 100644 --- a/exosphere/smc_user.c +++ b/exosphere/smc_user.c @@ -105,7 +105,7 @@ uint32_t user_compute_cmac(smc_args_t *args) { return 2; } - if (upage_init(&page_ref, (void *)user_address) == 0 || user_copy_to_secure() == 0) { + if (upage_init(&page_ref, (void *)user_address) == 0 || user_copy_to_secure(&page_ref, user_data, user_address, size) == 0) { return 2; }