mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dave Kleikamp <dave.kleikamp@oracle.com>
To: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Cc: jfs-discussion@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fs/jfs: Fix missing error code in lmLogInit()
Date: Tue, 1 Jun 2021 10:30:49 -0500	[thread overview]
Message-ID: <103f7053-409a-72c6-aae2-613d80b521d7@oracle.com> (raw)
In-Reply-To: <1622545630-19745-1-git-send-email-jiapeng.chong@linux.alibaba.com>

Good catch. I'll push this in the next merge window.

Thanks,
Shaggy

On 6/1/21 6:07 AM, Jiapeng Chong wrote:
> 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>
> ---
>   fs/jfs/jfs_logmgr.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/fs/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c
> index 9330eff21..78fd136 100644
> --- a/fs/jfs/jfs_logmgr.c
> +++ b/fs/jfs/jfs_logmgr.c
> @@ -1324,6 +1324,7 @@ int lmLogInit(struct jfs_log * log)
>   		} else {
>   			if (!uuid_equal(&logsuper->uuid, &log->uuid)) {
>   				jfs_warn("wrong uuid on JFS log device");
> +				rc = -EINVAL;
>   				goto errout20;
>   			}
>   			log->size = le32_to_cpu(logsuper->size);
> 

      reply	other threads:[~2021-06-01 15:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-01 11:07 Jiapeng Chong
2021-06-01 15:30 ` Dave Kleikamp [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=103f7053-409a-72c6-aae2-613d80b521d7@oracle.com \
    --to=dave.kleikamp@oracle.com \
    --cc=jfs-discussion@lists.sourceforge.net \
    --cc=jiapeng.chong@linux.alibaba.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®