lkml.org 
[lkml]   [2023]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] ubifs: fix missing error code err
From
Date
在 2023/8/18 17:18, Ferry Meng 写道:
> 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>

> diff --git a/fs/ubifs/journal.c b/fs/ubifs/journal.c
> index dc52ac0f4a34..ab837b73d4b9 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;
> }
>
>

\
 
 \ /
  Last update: 2023-08-19 04:26    [W:0.030 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site