Skip to content

Commit 60f2f4a

Browse files
jdmfrrichardweinberger
authored andcommitted
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 <[email protected]> Reviewed-by: Zhihao Cheng <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent f4a04c9 commit 60f2f4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/ubifs/journal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,6 +1607,7 @@ int ubifs_jnl_truncate(struct ubifs_info *c, const struct inode *inode,
16071607
ubifs_err(c, "bad data node (block %u, inode %lu)",
16081608
blk, inode->i_ino);
16091609
ubifs_dump_node(c, dn, dn_size);
1610+
err = -EUCLEAN;
16101611
goto out_free;
16111612
}
16121613

0 commit comments

Comments
 (0)