Avoid kernel panic when dynroot and memcache are used simultaneously.
[openafs.git] / src / afs / afs_dcache.c
index b6177af..1efa8de 100644 (file)
@@ -2127,7 +2127,7 @@ RetryLookup:
            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)