kernel: Replace ksu_access_ok with macro

Signed-off-by: rsuntk <rissu.ntk@gmail.com>
This commit is contained in:
rsuntk
2025-07-27 14:14:18 +07:00
committed by ShirkNeko
parent 0c87765958
commit 672041b4d6
3 changed files with 8 additions and 11 deletions

View File

@@ -155,7 +155,7 @@ int ksu_handle_execve_sucompat(int *fd, const char __user **filename_user,
* some cpus dont really have that good speculative execution
* access_ok to substitute set_fs, we check if pointer is accessible
*/
if (!ksu_access_ok((const void *)filename_user, sizeof(path)))
if (!ksu_access_ok(*filename_user, sizeof(path)))
return 0;
// success = returns number of bytes and should be less than path