Zero out the "allocated" flag so that we don't accidentally
authorNathan Neulinger <nneul@umr.edu>
Thu, 14 Mar 2002 19:50:48 +0000 (19:50 +0000)
committerNickolai Zeldovich <kolya@mit.edu>
Thu, 14 Mar 2002 19:50:48 +0000 (19:50 +0000)
free something that wasn't allocated.

src/afs/LINUX/osi_vnodeops.c

index 38254dc..4d36947 100644 (file)
@@ -807,6 +807,8 @@ static int afs_linux_dentry_revalidate(struct dentry *dp)
 
     AFS_GLOCK();
 
+    sysState.allocked = 0;
+
     /* If it's a negative dentry, then there's nothing to do. */
     if (!vcp || !parentvcp)
         goto done;