]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
linux-null-out-stat-struct-20040723
authorDerrick Brashear <shadow@dementia.org>
Fri, 23 Jul 2004 23:06:22 +0000 (23:06 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 23 Jul 2004 23:06:22 +0000 (23:06 +0000)
FIXES 3812

we should memset this to 0. we should also only do it once for linux 2.2. code is slightly different in the cvs head.

src/afs/LINUX/osi_vfsops.c

index 14c12c441b4a83ffd11d777a062d5fb1673402b7..05d1e7c8c8d56229e1d9b08297f39584af118f64 100644 (file)
@@ -374,6 +374,8 @@ afs_statfs(struct super_block *sbp, struct statfs *__statp, int size)
 
     memset(&stat, 0, size);
     statp = &stat;
+#else
+    memset(statp, 0, sizeof(*statp));
 #endif
 
     AFS_STATCNT(afs_statfs);