From ac1fb2c3de0faa4d633ae9708f389ba3e0110c04 Mon Sep 17 00:00:00 2001 From: Chas Williams Date: Thu, 29 Sep 2005 21:35:45 +0000 Subject: [PATCH] STABLE14-solaris-init-offset-for-write-20050929 passing a random nlen into afs_GetDCache() when in write mode seems to sometimes trigger overwrites. (cherry picked from commit f1454a2885c410f5e886fa136a61c70cc06d42df) --- src/afs/SOLARIS/osi_vnodeops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/SOLARIS/osi_vnodeops.c b/src/afs/SOLARIS/osi_vnodeops.c index 212b10f92..8a9ac44e8 100644 --- a/src/afs/SOLARIS/osi_vnodeops.c +++ b/src/afs/SOLARIS/osi_vnodeops.c @@ -266,7 +266,7 @@ afs_GetOnePage(vp, off, alen, protp, pl, plsz, seg, addr, rw, acred) register struct dcache *tdc; int i, s, pexists; int slot; - afs_size_t offset, nlen; + afs_size_t offset = 0, nlen; struct vrequest treq; afs_int32 mapForRead = 0, Code = 0; u_offset_t toffset; -- 2.39.5