summaryrefslogtreecommitdiff
path: root/fs/jfs/jfs_logmgr.c
diff options
context:
space:
mode:
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>2021-06-01 19:07:10 +0800
committerDave Kleikamp <dave.kleikamp@oracle.com>2021-06-01 10:29:12 -0500
commit492109333c29e1bb16d8732e1d597b02e8e0bf2e (patch)
treec56a3e8e3e124d9b4335939245e1d6818af7e048 /fs/jfs/jfs_logmgr.c
parentcf1031ed475244ec33ed8c58a072223231871280 (diff)
downloadlwn-492109333c29e1bb16d8732e1d597b02e8e0bf2e.tar.gz
lwn-492109333c29e1bb16d8732e1d597b02e8e0bf2e.zip
fs/jfs: Fix missing error code in lmLogInit()
The error code is missing in this code scenario, add the error code '-EINVAL' to the return value 'rc. Eliminate the follow smatch warning: fs/jfs/jfs_logmgr.c:1327 lmLogInit() warn: missing error code 'rc'. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Diffstat (limited to 'fs/jfs/jfs_logmgr.c')
-rw-r--r--fs/jfs/jfs_logmgr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c
index 9330eff210e0..78fd136ac13b 100644
--- a/fs/jfs/jfs_logmgr.c
+++ b/fs/jfs/jfs_logmgr.c
@@ -1324,6 +1324,7 @@ int lmLogInit(struct jfs_log * log)
} else {
if (!uuid_equal(&logsuper->uuid, &log->uuid)) {
jfs_warn("wrong uuid on JFS log device");
+ rc = -EINVAL;
goto errout20;
}
log->size = le32_to_cpu(logsuper->size);