From: Al Viro <viro@ZenIV.linux.org.uk>
To: YueHaibing <yuehaibing@huawei.com>
Cc: mszeredi@redhat.com, amir73il@gmail.com, neilb@suse.com,
bfields@redhat.com, linux-kernel@vger.kernel.org,
akpm@linux-foundation.org, matt.helsley@gmail.com
Subject: Re: [PATCH -next] exportfs: fix 'passing zero to ERR_PTR()' warning
Date: Mon, 19 Nov 2018 04:47:37 +0000 [thread overview]
Message-ID: <20181119044737.GL32577@ZenIV.linux.org.uk> (raw)
In-Reply-To: <20181119033241.20264-1-yuehaibing@huawei.com>
On Mon, Nov 19, 2018 at 11:32:41AM +0800, YueHaibing wrote:
> Fix a static code checker warning:
> fs/exportfs/expfs.c:171 reconnect_one() warn: passing zero to 'ERR_PTR'
>
> The error path for lookup_one_len_unlocked failure
> should set err to PTR_ERR.
>
> Fixes: bbf7a8a3562f ("exportfs: move most of reconnect_path to helper function")
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Applied.
prev parent reply other threads:[~2018-11-19 4:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-19 3:32 [PATCH -next] exportfs: fix 'passing zero to ERR_PTR()' warning YueHaibing
2018-11-19 4:47 ` Al Viro [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=20181119044737.GL32577@ZenIV.linux.org.uk \
--to=viro@zeniv.linux.org.uk \
--cc=akpm@linux-foundation.org \
--cc=amir73il@gmail.com \
--cc=bfields@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matt.helsley@gmail.com \
--cc=mszeredi@redhat.com \
--cc=neilb@suse.com \
--cc=yuehaibing@huawei.com \
/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;
as well as URLs for NNTP newsgroup(s).