]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-linux-probe-syscall-table-again-20080703
authorBenjamin Bennett <ben@psc.edu>
Thu, 3 Jul 2008 21:33:25 +0000 (21:33 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 3 Jul 2008 21:33:25 +0000 (21:33 +0000)
LICENSE IPL10
FIXES 105457

move the init_mm ifdef down far enough that it's effective and we actually
probe to be able to hook syscall table

(cherry picked from commit a4e3fb21f0fd8f02ffd2c01b4d39ac55cd3474b1)

src/afs/LINUX/osi_probe.c

index e1a0aaa1f0f7e2201706fc98f033941fbd5f2c2c..f661e9ea3aa0668c61aac3998166b446f06a843a 100644 (file)
@@ -45,7 +45,6 @@
 
 /* Code to find the Linux syscall table */
 
-#if defined(EXPORTED_INIT_MM)
 #ifdef OSI_PROBE_STANDALONE
 #define OSI_PROBE_DEBUG
 #endif
@@ -53,6 +52,7 @@
 #include <afsconfig.h>
 #include "afs/param.h"
 #endif
+#if defined(EXPORTED_INIT_MM)
 #ifdef AFS_LINUX24_ENV
 #include <linux/module.h> /* early to avoid printf->printk mapping */
 #ifndef OSI_PROBE_STANDALONE