OSDN Git Service

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)
committerAmit Pundir <amit.pundir@linaro.org>
Tue, 14 Aug 2018 12:17:11 +0000 (17:47 +0530)
commite678f7cef2c5af4db4290dcf4a00fdca3f6864e1
treed7c40f9246f0d08051c271cfbc68915c78a5aa71
parentcc776061b1ee1ad4a13fd37ad1b605f4f50d881c
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