afs: Cope with afs_GetValidDSlot errors
[openafs.git] / src / afs / afs_daemons.c
index 595d76f..a1bd5f0 100644 (file)
@@ -1177,7 +1177,7 @@ afs_sgidaemon(void)
            SPUNLOCK(afs_sgibklock, s);
            AFS_GLOCK();
            tdc->dflags &= ~DFEntryMod;
-           afs_WriteDCache(tdc, 1);
+           osi_Assert(afs_WriteDCache(tdc, 1) == 0);
            AFS_GUNLOCK();
            s = SPLOCK(afs_sgibklock);
        }