author: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> 2021-06-01 19:07:10 +0800
committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-07-20 16:00:15 +0200
commit: 0dab71667eb029780333ff45b07e3fcce5e16119
parent: 936440f4782692b0ee7fb284bb9f302d22c527ce
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 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);