From 664e48287d4c365896ce0836a0115946e3bd2ccb Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Wed, 23 Apr 2008 19:05:50 -0400 Subject: [PATCH] Unionfs: set lower file to NULL in file_release Signed-off-by: Erez Zadok --- fs/unionfs/commonfops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c index 82b0eea4734..631e081e792 100644 --- a/fs/unionfs/commonfops.c +++ b/fs/unionfs/commonfops.c @@ -717,6 +717,7 @@ int unionfs_file_release(struct inode *inode, struct file *file) lower_file = unionfs_lower_file_idx(file, bindex); if (lower_file) { + unionfs_set_lower_file_idx(file, bindex, NULL); fput(lower_file); branchput(sb, bindex); } -- 2.34.1