projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4a04c9
)
ubifs: Fix missing error code err
author
Ferry Meng
<mengferry@linux.alibaba.com>
Fri, 18 Aug 2023 09:18:48 +0000
(17:18 +0800)
committer
Richard Weinberger
<richard@nod.at>
Sat, 28 Oct 2023 20:10:52 +0000
(22:10 +0200)
Fix smatch warning:
fs/ubifs/journal.c:1610 ubifs_jnl_truncate() warn: missing error code
'err'
Signed-off-by: Ferry Meng <mengferry@linux.alibaba.com>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/journal.c
patch
|
blob
|
history
diff --git
a/fs/ubifs/journal.c
b/fs/ubifs/journal.c
index ffc9beee7be650f125a93114562e356a7db1d5af..e6cceeb8573bb1cb59c6c1b8cec78093b364c2a1 100644
(file)
--- a/
fs/ubifs/journal.c
+++ b/
fs/ubifs/journal.c
@@
-1607,6
+1607,7
@@
int ubifs_jnl_truncate(struct ubifs_info *c, const struct inode *inode,
ubifs_err(c, "bad data node (block %u, inode %lu)",
blk, inode->i_ino);
ubifs_dump_node(c, dn, dn_size);
+ err = -EUCLEAN;
goto out_free;
}