diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 8136cec3fd2b..56ccea074713 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -470,6 +470,9 @@ int ksu_handle_prctl(int option, unsigned long arg2, unsigned long arg3, bool enabled = (arg3 != 0); if (enabled == ksu_su_compat_enabled) { pr_info("cmd enable su but no need to change.\n"); + if (copy_to_user(result, &reply_ok, sizeof(reply_ok))) {// return the reply_ok directly + pr_err("prctl reply error, cmd: %lu\n", arg2); + } return 0; }