projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b556f4e
)
ANDROID: sdcardfs: Set s_root to NULL after putting
author
Daniel Rosenberg
<drosen@google.com>
Thu, 12 Apr 2018 01:39:43 +0000
(18:39 -0700)
committer
Daniel Rosenberg
<drosen@google.com>
Wed, 25 Apr 2018 20:41:03 +0000
(20:41 +0000)
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug:
77923821
Change-Id: I1705bfd146009561d2d1da5f0e6a342ec6932a1c
fs/sdcardfs/main.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/sdcardfs/main.c
b/fs/sdcardfs/main.c
index 1a977493f88dd342082537411da248e411b5b5f5..30e0c431a1ea435a45635b0224410f97be9b3bab 100644
(file)
--- a/
fs/sdcardfs/main.c
+++ b/
fs/sdcardfs/main.c
@@
-361,6
+361,7
@@
static int sdcardfs_read_super(struct vfsmount *mnt, struct super_block *sb,
/* no longer needed: free_dentry_private_data(sb->s_root); */
out_freeroot:
dput(sb->s_root);
+ sb->s_root = NULL;
out_sput:
/* drop refs we took earlier */
atomic_dec(&lower_sb->s_active);