From 12215b6d228cc72f914f70316180cb4f5bc25a86 Mon Sep 17 00:00:00 2001 From: Marwis2 <98088008+Marwis2@users.noreply.github.com> Date: Wed, 2 Oct 2024 14:32:23 +0200 Subject: [PATCH] Update rc_init.c add support for kernel 6.11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removing empty item in ctl_table. Changes to kernel 6.11 in fs/proc/proc_sysctl.c throw an error when the ctl_table entry is empty (procname is null). As a result, the rcraid module causes “Kernel Panic!” and system hangs. --- src/rc_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rc_init.c b/src/rc_init.c index 35d3aef..9e3fdba 100755 --- a/src/rc_init.c +++ b/src/rc_init.c @@ -2791,7 +2791,9 @@ static struct ctl_table rcraid_table[] = { .mode = 0644, .proc_handler = &proc_dointvec }, +#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0) { } +#endif }; #if LINUX_VERSION_CODE < KERNEL_VERSION(6,5,0)