From: Hangbin Liu <hangbin.liu@linux.dev>
To: Omokefe Emmanuel Onanaroghene <emmaonana18@gmail.com>
Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>, Shuah Khan <shuah@kernel.org>,
linux-kernel@vger.kernel.org, skhan@linuxfoundation.org
Subject: Re: [PATCH net-next] selftests: net: sk_connect_zero_addr: fix mislabeled connect diagnostic
Date: Mon, 23 Nov 2026 13:47:54 +0800 [thread overview]
Message-ID: <20261123054754.GI10218@Liu-laptop> (raw)
In-Reply-To: <20261120063011.21557-1-emmaonana18@gmail.com>
Hi Omokefe,
On Fri, Nov 20, 2026 at 07:30:11AM +0100, Omokefe Emmanuel Onanaroghene wrote:
> The connect() failure branch reports "bind fd2", copy-pasted from the
> bind() block above. Name the failing call.
>
> Signed-off-by: Omokefe Emmanuel Onanaroghene <emmaonana18@gmail.com>
> ---
> tools/testing/selftests/net/sk_connect_zero_addr.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/net/sk_connect_zero_addr.c b/tools/testing/selftests/net/sk_connect_zero_addr.c
> index 4be418aefd9f7..4441e9c62fde5 100644
> --- a/tools/testing/selftests/net/sk_connect_zero_addr.c
> +++ b/tools/testing/selftests/net/sk_connect_zero_addr.c
> @@ -46,7 +46,7 @@ int main(void)
> }
> e
An "e" here?
Thanks
Hangbin
> if (connect(fd2, (struct sockaddr *)&bind_addr, sizeof(bind_addr))) {
> - error(1, errno, "bind fd2");
> + error(1, errno, "connect fd2");
> goto out_err2;
> }
>
> --
> 2.43.0
>
prev parent reply other threads:[~2026-11-23 5:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 6:30 Omokefe Emmanuel Onanaroghene
2026-11-23 5:47 ` Hangbin Liu [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=20261123054754.GI10218@Liu-laptop \
--to=hangbin.liu@linux.dev \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=emmaonana18@gmail.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
--cc=skhan@linuxfoundation.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®