From 15635b30a5438c7fc8aafcdbf37cecad2fb357d6 Mon Sep 17 00:00:00 2001 From: Nathan Neulinger Date: Sun, 21 Apr 2002 20:54:17 +0000 Subject: [PATCH] Zero out the "allocated" flag so that we don't accidentally free something that wasn't allocated. (cherry picked from commit c360bb35ce506ad9ab425fea43b96a708e0ed1d9) --- src/afs/LINUX/osi_vnodeops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index ff96e4ec4..b609a01bc 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -710,6 +710,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; -- 2.39.5