ANDROID: sdcardfs: ->iget fixes
authorDaniel Rosenberg <drosen@google.com>
Tue, 18 Apr 2017 19:45:48 +0000 (12:45 -0700)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:37 +0000 (18:03 +0200)
commitdf69e20ec3cc2df18f5c7ebb60dbfca8a8c35303
tree285bb047951158ef97f6caa7d39b3e5ccf68ba07
parent0823af9f25deff472be7f2201b4b4b00957090c0
ANDROID: sdcardfs: ->iget fixes

Adapted from wrapfs
commit 8c49eaa0sb9c ("Wrapfs: ->iget fixes")

Change where we igrab/iput to ensure we always hold a valid lower_inode.
Return ENOMEM (not EACCES) if iget5_locked returns NULL.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug: 35766959

Change-Id: Id8d4e0c0cbc685a0a77685ce73c923e9a3ddc094
fs/sdcardfs/lookup.c