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-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=bc9a92c3f39835a2ccd8cba191289d4d01cdffa0;p=unionfs-3.15.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); }