LINUX: Return NULL for afs_linux_raw_open error
[openafs.git] / src / afs / afs_fetchstore.c
index df31f43..c9a73a8 100644 (file)
@@ -270,6 +270,7 @@ afs_GenericStoreProc(struct storeOps *ops, void *rock,
     size = tdc->f.chunkBytes;
 
     tfile = afs_CFileOpen(&tdc->f.inode);
+    osi_Assert(tfile);
 
     while ( size > 0 ) {
        code = (*ops->prepare)(rock, size, &tlen);