git.samba.org
/
sfrench
/
cifs-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f121aad
)
ovl: use path_put_init() in error paths for ovl_fill_super()
author
Miklos Szeredi
<mszeredi@redhat.com>
Thu, 9 Nov 2017 09:23:28 +0000
(10:23 +0100)
committer
Miklos Szeredi
<mszeredi@redhat.com>
Thu, 9 Nov 2017 09:23:28 +0000
(10:23 +0100)
This allows simplifying the error cleanup later.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/super.c
patch
|
blob
|
history
diff --git
a/fs/overlayfs/super.c
b/fs/overlayfs/super.c
index 2c9f48096ff03090348431ffe93ae6aa68fa5e39..bc8729491362c506a4e49b38f374b2e7104c608b 100644
(file)
--- a/
fs/overlayfs/super.c
+++ b/
fs/overlayfs/super.c
@@
-586,7
+586,7
@@
static int ovl_mount_dir_noesc(const char *name, struct path *path)
return 0;
out_put:
- path_put(path);
+ path_put
_init
(path);
out:
return err;
}
@@
-604,7
+604,7
@@
static int ovl_mount_dir(const char *name, struct path *path)
if (ovl_dentry_remote(path->dentry)) {
pr_err("overlayfs: filesystem on '%s' not supported as upperdir\n",
tmp);
- path_put(path);
+ path_put
_init
(path);
err = -EINVAL;
}
kfree(tmp);
@@
-656,7
+656,7
@@
static int ovl_lower_dir(const char *name, struct path *path,
return 0;
out_put:
- path_put(path);
+ path_put
_init
(path);
out:
return err;
}