diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 729253922830..4cf9984143d5 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -474,6 +474,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; }