ANDROID: sdcardfs: ->iget fixes
authorDaniel Rosenberg <drosen@google.com>
Tue, 18 Apr 2017 19:45:48 +0000 (12:45 -0700)
committerDaniel Rosenberg <drosen@google.com>
Tue, 30 Jan 2018 03:40:08 +0000 (19:40 -0800)
commitce02550067e399856a149243808551778f2efabf
tree405387866e1dea6c41771a23065c7d53e7c37d14
parent56866356808b2c054f8bebd57a4195baca6cef85
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