diff --git a/exosphere/smc_user.c b/exosphere/smc_user.c index 1371baa..c1b3582 100644 --- a/exosphere/smc_user.c +++ b/exosphere/smc_user.c @@ -105,7 +105,7 @@ 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; }