Home Home > GIT Browse > SLE12-SP3
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoldwyn Rodrigues <rgoldwyn@suse.com>2018-07-06 08:03:09 -0500
committerGoldwyn Rodrigues <rgoldwyn@suse.com>2018-07-06 08:03:18 -0500
commit2f3b4a65ae7da0471fe39f6a7bda5339a2bfe2dc (patch)
treeea68b27b0b27f4317f4333cae6e4cf545626ed35
parent6893c3b6180c300bc4020eeaf1edee09585883e1 (diff)
ovl: fix random return value on mount (bsc#1099993).
-rw-r--r--fs/overlayfs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index f85e73f49543..6a06c35d6e86 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -1182,11 +1182,11 @@ static int ovl_fill_super(struct super_block *sb, void *data, int silent)
else
sb->s_d_op = &ovl_dentry_operations;
+ err = -ENOMEM;
ufs->creator_cred = prepare_creds();
if (!ufs->creator_cred)
goto out_put_lower_mnt;
- err = -ENOMEM;
oe = ovl_alloc_entry(numlower);
if (!oe)
goto out_put_cred;