mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-18 10:34:24 +08:00
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>
This commit is contained in:
parent
cf1031ed47
commit
492109333c
@ -1324,6 +1324,7 @@ int lmLogInit(struct jfs_log * log)
|
|||||||
} else {
|
} else {
|
||||||
if (!uuid_equal(&logsuper->uuid, &log->uuid)) {
|
if (!uuid_equal(&logsuper->uuid, &log->uuid)) {
|
||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user