kernel: add missing kfree, use proper return code

* This is half picked from 559be41482
* We haven't sync latest upstream changes yet

Signed-off-by: Faris <rissu.ntk@gmail.com>
This commit is contained in:
Wang Han
2025-11-09 20:29:26 +07:00
committed by ShirkNeko
parent a2211e2909
commit d36371580b
2 changed files with 7 additions and 6 deletions

View File

@@ -348,7 +348,7 @@ static int do_set_feature(void __user *arg)
static int do_get_wrapper_fd(void __user *arg)
{
if (!ksu_file_sid) {
return -1;
return -EINVAL;
}
const char *anon_name = "[ksu_fdwrapper]";