From: Marc Dionne Date: Tue, 7 Apr 2009 17:16:43 +0000 (+0000) Subject: linux-2-6-30-support-for-head-20090407 X-Git-Tag: openafs-devel-1_5_61~354 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=aea52af634dd20c1cff1a6347ac24770ae727328;p=packages%2Fo%2Fopenafs.git linux-2-6-30-support-for-head-20090407 LICENSE IPL10 FIXES 124592 make proc dir entry owner field only be initialized when it exists --- diff --git a/src/afs/LINUX/osi_ioctl.c b/src/afs/LINUX/osi_ioctl.c index 364241a2f..a38733f22 100644 --- a/src/afs/LINUX/osi_ioctl.c +++ b/src/afs/LINUX/osi_ioctl.c @@ -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)