From: Erez Zadok Date: Wed, 23 Apr 2008 23:05:50 +0000 (-0400) Subject: Unionfs: set lower file to NULL in file_release X-Git-Tag: unionfs-2.3.3~2 X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=3ac88cc153164cc303215e82589b92e77a8c3d1b;p=unionfs-2.6.31.y.git Unionfs: set lower file to NULL in file_release Signed-off-by: Erez Zadok --- 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); }