summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ubootvarfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ubootvarfs.c b/fs/ubootvarfs.c
index 475e4b7a79..147fee1ea6 100644
--- a/fs/ubootvarfs.c
+++ b/fs/ubootvarfs.c
@@ -259,6 +259,7 @@ static int ubootvarfs_unlink(struct inode *dir, struct dentry *dentry)
list_del(&var->list);
free(var);
+ node->var = NULL;
}
return simple_unlink(dir, dentry);