aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Rosenberg <drosen@google.com>2016-03-28 16:38:00 -0500
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:59:52 +0200
commitbcba1c627f32a0c11d2c2c393d0ed5c9bb671c5a (patch)
tree4a15d966b5f7d6342265b81a26a12895b2dffe8a
parentafd11b15e490e357496c86d43297352371572380 (diff)
sdcardfs: Fix issue with d_child move
"move d_rcu from overlapping d_child to overlapping d_alias" moved the location of d_child in struct dentry. This fixes a container_of that relied on that in sdcardfs Change-Id: I40b8333e478496fb13e260854adb7b17dff0239a
-rwxr-xr-xfs/sdcardfs/derived_perm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sdcardfs/derived_perm.c b/fs/sdcardfs/derived_perm.c
index 903e89068..41e0e11b3 100755
--- a/fs/sdcardfs/derived_perm.c
+++ b/fs/sdcardfs/derived_perm.c
@@ -111,7 +111,7 @@ void get_derived_permission(struct dentry *parent, struct dentry *dentry)
void get_derive_permissions_recursive(struct dentry *parent) {
struct dentry *dentry;
- list_for_each_entry(dentry, &parent->d_subdirs, d_u.d_child) {
+ list_for_each_entry(dentry, &parent->d_subdirs, d_child) {
if (dentry->d_inode) {
mutex_lock(&dentry->d_inode->i_mutex);
get_derived_permission(parent, dentry);