linux-2-6-30-support-for-head-20090407
authorMarc Dionne <marc.c.dionne@gmail.com>
Tue, 7 Apr 2009 17:16:43 +0000 (17:16 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 7 Apr 2009 17:16:43 +0000 (17:16 +0000)
LICENSE IPL10
FIXES 124592

make proc dir entry owner field only be initialized when it exists

src/afs/LINUX/osi_ioctl.c

index 364241a..a38733f 100644 (file)
@@ -126,7 +126,9 @@ osi_ioctl_init(void)
 
     entry = create_proc_entry(PROC_SYSCALL_NAME, 0666, openafs_procfs);
     entry->proc_fops = &afs_syscall_fops;
+#if defined(STRUCT_PROC_DIR_ENTRY_HAS_OWNER)
     entry->owner = THIS_MODULE;
+#endif
 
 #if defined(NEED_IOCTL32) && !defined(HAVE_COMPAT_IOCTL)
     if (register_ioctl32_conversion(VIOC_SYSCALL32, NULL) == 0)