From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Xenomai <xenomai@lists.linux.dev>
Subject: Re: [dovetail 7.3][PATCH] net: dovetail: Pick up lost return code of packet_do_bind_unlocked
Date: Wed, 11 Nov 2026 10:44:20 +0100 [thread overview]
Message-ID: <874idn66tn.fsf@xenomai.org> (raw)
In-Reply-To: <3a6f9b1e-dbab-4aad-be69-3fdb30be8545@siemens.com> (Jan Kiszka's message of "Wed, 11 Nov 2026 10:15:05 +0100")
Jan Kiszka <jan.kiszka@siemens.com> writes:
> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> Results in missed errors and uninitialized usage of ret, thus random
> behavior.
>
> Reported-by: opencode:Opus-5.5
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>
> Apparently a regression of the 6.19 forward port.
>
> net/packet/af_packet.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
> index 6ebeb3f1f5811..53b1c35423699 100644
> --- a/net/packet/af_packet.c
> +++ b/net/packet/af_packet.c
> @@ -3371,7 +3371,7 @@ static int packet_bind_spkt(struct socket *sock, struct sockaddr_unsized *uaddr,
> name[sizeof(sa->sa_data)] = 0;
>
> lock_sock(sk);
> - packet_do_bind_unlocked(sk, name, 0, 0);
> + ret = packet_do_bind_unlocked(sk, name, 0, 0);
> if (!ret && sock_oob_capable(sk->sk_socket))
> ret = sock_oob_bind(sk, uaddr, addr_len);
> release_sock(sk);
Merged, thanks.
--
Philippe.
prev parent reply other threads:[~2026-11-11 9:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 9:15 [dovetail 7.3][PATCH] net: dovetail: Pick up lost return code of packet_do_bind_unlocked Jan Kiszka
2026-11-11 9:44 ` Philippe Gerum [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=874idn66tn.fsf@xenomai.org \
--to=rpm@xenomai.org \
--cc=jan.kiszka@siemens.com \
--cc=xenomai@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.