From: Derrick Brashear Date: Fri, 23 Jul 2004 23:06:22 +0000 (+0000) Subject: linux-null-out-stat-struct-20040723 X-Git-Tag: openafs-devel-1_3_66~17 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=56f82397c60ce968f7d02c9bba22bc6489f7e162;p=packages%2Fo%2Fopenafs.git linux-null-out-stat-struct-20040723 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. --- diff --git a/src/afs/LINUX/osi_vfsops.c b/src/afs/LINUX/osi_vfsops.c index 14c12c441..05d1e7c8c 100644 --- a/src/afs/LINUX/osi_vfsops.c +++ b/src/afs/LINUX/osi_vfsops.c @@ -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);