提交 5fbb551c 编写于 作者: J Jiapeng Chong 提交者: Yang Yingliang

fs/jfs: Fix missing error code in lmLogInit()

stable inclusion
from linux-4.19.198
commit 8a63ff46c2196bb9cd2a7afbfe7aa4cb3388f5b8

--------------------------------

[ Upstream commit 49210933 ]

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: NAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: NJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: NDave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 256ab987
...@@ -1338,6 +1338,7 @@ int lmLogInit(struct jfs_log * log) ...@@ -1338,6 +1338,7 @@ int lmLogInit(struct jfs_log * log)
} else { } else {
if (memcmp(logsuper->uuid, log->uuid, 16)) { if (memcmp(logsuper->uuid, log->uuid, 16)) {
jfs_warn("wrong uuid on JFS log device"); jfs_warn("wrong uuid on JFS log device");
rc = -EINVAL;
goto errout20; goto errout20;
} }
log->size = le32_to_cpu(logsuper->size); log->size = le32_to_cpu(logsuper->size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册