更改返回值处理方式

This commit is contained in:
liankong
2025-03-31 19:47:22 +08:00
parent 00d7de5276
commit 079f74d960
3 changed files with 47 additions and 48 deletions

View File

@@ -419,10 +419,7 @@ int ksu_handle_prctl(int option, unsigned long arg2, unsigned long arg3,
pr_info("KPM: calling before arg2=%d\n", (int) arg2);
res = sukisu_handle_kpm(arg2, arg3, arg4);
copy_to_user(result, &res, sizeof(res));
pr_info("KPM: calling before arg2=%d res=%d\n", (int) arg2, (int) res);
res = sukisu_handle_kpm(arg2, arg3, arg4, arg5);
return 0;
}