projects
/
wrapfs-4.13.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6aa5e93
)
ovl: fix dput() of ERR_PTR in ovl_cleanup_index()
author
Amir Goldstein
<amir73il@gmail.com>
Sun, 24 Sep 2017 14:36:26 +0000
(17:36 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 12 Oct 2017 09:56:15 +0000
(11:56 +0200)
commit
9f4ec904dbd4eb1a2db10d5e7dc16eae386fe64d
upstream.
Fixes: caf70cb2ba5d ("ovl: cleanup orphan index entries")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/overlayfs/util.c
patch
|
blob
|
history
diff --git
a/fs/overlayfs/util.c
b/fs/overlayfs/util.c
index f46ad75dc96af187ea22990a09e63d051aa4bbca..91f54ed25bd2d54b622453ccd1e2843692219fe2 100644
(file)
--- a/
fs/overlayfs/util.c
+++ b/
fs/overlayfs/util.c
@@
-418,7
+418,7
@@
void ovl_inuse_unlock(struct dentry *dentry)
}
}
-/* Calle
d must hold OVL_I(inode)->oi_
lock */
+/* Calle
r must hold OVL_I(inode)->
lock */
static void ovl_cleanup_index(struct dentry *dentry)
{
struct inode *dir = ovl_indexdir(dentry->d_sb)->d_inode;
@@
-457,6
+457,9
@@
static void ovl_cleanup_index(struct dentry *dentry)
err = PTR_ERR(index);
if (!IS_ERR(index))
err = ovl_cleanup(dir, index);
+ else
+ index = NULL;
+
inode_unlock(dir);
if (err)
goto fail;