]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Avoid kernel panic when dynroot and memcache are used simultaneously.
authorNickolai Zeldovich <kolya@mit.edu>
Thu, 9 May 2002 23:07:12 +0000 (23:07 +0000)
committerGarry Zacheiss <zacheiss@mit.edu>
Thu, 9 May 2002 23:07:12 +0000 (23:07 +0000)
(cherry picked from commit 81a3f0068f3488b7fb20fb9d6b7441f64f5b61e0)

src/afs/afs_dcache.c

index f1839c31e10c09845e1ef586545f6a7db372cfdd..51fbf981e3fde3ac064a5793cf0672ab4ecf8b25 100644 (file)
@@ -1895,7 +1895,7 @@ struct dcache *afs_GetDCache(avc, abyte, areq, aoffset, alen, aflags)
            if (size > dynrootLen)
                size = dynrootLen;
            if (size < 0) size = 0;
-           code = afs_osi_Write(file, -1, dynrootDir, size);
+           code = afs_CFileWrite(file, 0, dynrootDir, size);
            afs_PutDynroot();
 
            if (code == size)