change errno to error to avoid confusion

This commit is contained in:
2026-10-06 00:20:35 +02:00
parent 57b1d338ac
commit 685f911431
6 changed files with 12 additions and 11 deletions
+4 -4
View File
@@ -20,7 +20,7 @@ struct syscall_ret sys_setuname(const __user struct __utsname* ptr) {
struct syscall_ret ret = {};
if (!ptr) {
ret.errno = EINVAL;
ret.error = EINVAL;
return ret;
}
@@ -28,7 +28,7 @@ struct syscall_ret sys_setuname(const __user struct __utsname* ptr) {
struct __utsname read_buf;
if (!usercopy_read(&read_buf, ptr, sizeof(read_buf))) {
ret.errno = EFAULT;
ret.error = EFAULT;
return ret;
}
@@ -50,7 +50,7 @@ struct syscall_ret sys_getuname(__user struct __utsname* ptr) {
struct syscall_ret ret = {};
if (!ptr) {
ret.errno = EINVAL;
ret.error = EINVAL;
return ret;
}
@@ -59,7 +59,7 @@ struct syscall_ret sys_getuname(__user struct __utsname* ptr) {
spin_unlock(&uname_lock);
if (!usercopy_write(ptr, &write_buf, sizeof(write_buf)))
ret.errno = EFAULT;
ret.error = EFAULT;
return ret;
}