oaf: fix work for linux 6.12

[22622.309938] sysctl table check failed: oaf/(null) procname is null
[22622.309965] sysctl table check failed: oaf/(null) No proc_handler
[22622.309970] init log sysctl...failed

Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
sbwml 2024-10-09 20:17:40 +08:00
parent 65cd325fa2
commit 9545bbf92e

View File

@ -59,8 +59,9 @@ static struct ctl_table oaf_table[] = {
.mode = 0666,
.proc_handler = proc_douintvec,
},
{
}
#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0))
{}
#endif
};
static struct ctl_table oaf_root_table[] = {