diff options
author | Ferry Meng <mengferry@linux.alibaba.com> | 2023-08-18 17:18:48 +0800 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2023-10-28 22:10:52 +0200 |
commit | 60f2f4a81d486348587a6901e744ca8f22dd9637 (patch) | |
tree | ce10b7f6d564c6d86a4399b7e682f225dbbfa363 /fs | |
parent | f4a04c97fb3b7edd7694e725b7dcf0d6901ebcdd (diff) | |
download | linux-stable-60f2f4a81d486348587a6901e744ca8f22dd9637.tar.gz linux-stable-60f2f4a81d486348587a6901e744ca8f22dd9637.tar.bz2 linux-stable-60f2f4a81d486348587a6901e744ca8f22dd9637.zip |
ubifs: Fix missing error code err
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ubifs/journal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ubifs/journal.c b/fs/ubifs/journal.c index ffc9beee7be6..e6cceeb8573b 100644 --- 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; } |