ANDROID: sdcardfs: Check for private data earlier
authorDaniel Rosenberg <drosen@google.com>
Wed, 11 Apr 2018 23:19:10 +0000 (16:19 -0700)
committerDaniel Rosenberg <drosen@google.com>
Wed, 25 Apr 2018 20:40:46 +0000 (20:40 +0000)
commit608391f449abc210566d0181ba6f4db411c5da16
tree70d7fd9cd1fc674c04c97b212411db1d8fff3bd4
parentc4193b3645809a152acbbdc40bcd4c848f4d1748
ANDROID: sdcardfs: Check for private data earlier

When an sdcardfs dentry is destroyed, it may not yet
have its fsdata initialized. It must be checked before
we try to access the paths in its private data.

Additionally, when cleaning up the superblock after
a failure, we don't have our sb private data, so
check for that case.

Bug: 77923821
Change-Id: I89caf6e121ed86480b42024664453fe0031bbcf3
Signed-off-by: Daniel Rosenberg <drosen@google.com>
fs/sdcardfs/dentry.c
fs/sdcardfs/lookup.c
fs/sdcardfs/main.c