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>
Thu, 25 May 2017 11:07:25 +0000 (16:37 +0530)
commit3420d73c1d9db66d01a190ac6c18141208081598
tree5550575c4e9064c06d1afbbb560d61beae992d10
parent182e12b8af5829a27e154391274a57b2f38180a8
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