ANDROID: sdcardfs: Don't iput if we didn't igrab
authorDaniel Roseberg <drosen@google.com>
Tue, 9 May 2017 20:36:35 +0000 (13:36 -0700)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:40 +0000 (18:03 +0200)
commitf72d93f5f20c670cccd481437b80a51eea549a75
treefc81e10f23d27c3046b58893e2ab7341825f9570
parentd352fa8edbaf05f50fd368ec528d9b39fd356bee
ANDROID: sdcardfs: Don't iput if we didn't igrab

If we fail to get top, top is either NULL, or igrab found
that we're in the process of freeing that inode, and did
not grab it. Either way, we didn't grab it, and have no
business putting it.

Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug: 38117720
Change-Id: Ie2f587483b9abb5144263156a443e89bc69b767b
fs/sdcardfs/inode.c