The fix is to replace "&proc_root" with "NULL". During the call
to remove_proc_entry(), xlate_proc_name() will map NULL back to
proc_root again. (patch attached)
However, the userland component is unusable, as described in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=453852
IMO, until both bugs are fixed it's not worth updating the package
for just one of them.
Steve
Thu Aug 28 01:20:57 BST 2008 Steve Cotton <[EMAIL PROTECTED]>
* #495335: Fix the kernel modules call to remove_proc_entry to work with Linux 2.6.26
Replace "&proc_root" with "NULL". During the call to remove_proc_entry(),
xlate_proc_name() will map NULL back to proc_root again.
diff -rN -u old-exmap-0.10/kernel/exmap.c new-exmap-0.10/kernel/exmap.c
--- old-exmap-0.10/kernel/exmap.c 2008-08-28 15:13:39.000000000 +0100
+++ new-exmap-0.10/kernel/exmap.c 2008-08-28 15:13:39.000000000 +0100
@@ -507,7 +507,7 @@
NULL);
if (exmap_proc_file == NULL) {
- remove_proc_entry (PROCFS_NAME, &proc_root);
+ remove_proc_entry (PROCFS_NAME, NULL);
printk (KERN_ALERT "/proc/%s: could not initialize\n",
PROCFS_NAME);
return -ENOMEM;
@@ -532,5 +532,5 @@
void cleanup_module ()
{
printk (KERN_INFO "/proc/%s: remove\n", PROCFS_NAME);
- remove_proc_entry (PROCFS_NAME, &proc_root);
+ remove_proc_entry (PROCFS_NAME, NULL);
}