afs: do not allow two shutdown sequences in parallel
[openafs.git] / src / afs / NBSD / osi_file.c
index dd7811a..dfacb69 100644 (file)
@@ -154,7 +154,7 @@ afs_osi_Read(struct osi_file *afile, int offset, void *aptr, afs_int32 asize)
      * down. No point in crashing when we are already shutting down
      */
     if (!afile) {
-       if (!afs_shuttingdown)
+       if (afs_shuttingdown == AFS_RUNNING)
            osi_Panic("osi_Read called with null param");
        else
            return -EIO;