ANDROID: sdcardfs: Add missing path_put
authorDaniel Rosenberg <drosen@google.com>
Fri, 17 Feb 2017 01:55:22 +0000 (17:55 -0800)
committerDaniel Rosenberg <drosen@google.com>
Tue, 30 Jan 2018 03:40:04 +0000 (19:40 -0800)
"ANDROID: sdcardfs: Add GID Derivation to sdcardfs" introduced
an unbalanced pat_get, leading to storage space not being freed
after deleting a file until rebooting. This adds the missing path_put.

Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug: 34691169
Change-Id: Ia7ef97ec2eca2c555cc06b235715635afc87940e

fs/sdcardfs/derived_perm.c

index 4b3801885959361152e59f28bcb1969ecae4a1e6..1b5029d819214cddd4affbb3b6d559a19d7ea7e8 100644 (file)
@@ -245,6 +245,7 @@ retry_deleg:
                if (error)
                        pr_err("sdcardfs: Failed to touch up lower fs gid/uid.\n");
        }
+       sdcardfs_put_lower_path(dentry, &path);
 }
 
 static int descendant_may_need_fixup(struct sdcardfs_inode_info *info, struct limit_search *limit)