From: Ratheesh Kannoth <rkannoth@marvell.com>
To: Ajith P V <ajithpv.linux@gmail.com>
Cc: <tung.quang.nguyen@est.tech>, <jmaloy@redhat.com>,
<davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>,
<pabeni@redhat.com>, <horms@kernel.org>, <netdev@vger.kernel.org>,
<tipc-discussion@lists.sourceforge.net>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net-next v4] tipc: replace deprecated strcpy with strscpy in tipc_bearer_get_name()
Date: Thu, 3 Sep 2026 17:50:35 +0530 [thread overview]
Message-ID: <aplmE1r2RdHA5JVl@rkannoth-OptiPlex-7090> (raw)
In-Reply-To: <20260902053043.1483895-1-ajithpv.linux@gmail.com>
On 2026-09-02 at 11:00:43, Ajith P V (ajithpv.linux@gmail.com) wrote:
> @@ -209,7 +211,9 @@ int tipc_bearer_get_name(struct net *net, char *name, u32 bearer_id)
> if (!b)
> return -EINVAL;
>
> - strcpy(name, b->name);
> + ret = strscpy(name, b->name, len);
> + if (ret < 0)
> + return ret; /* Returns -E2BIG if destination buffer is too small */
nit: please remove the comment.
> return 0;
Reviewed-by: Ratheesh Kannoth <rkannoth@marvell.com>
next prev parent reply other threads:[~2026-09-03 12:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-02 5:30 Ajith P V
2026-09-03 11:54 ` Tung Quang Nguyen
2026-09-03 12:20 ` Ratheesh Kannoth [this message]
2026-09-03 21:44 ` David Laight
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=aplmE1r2RdHA5JVl@rkannoth-OptiPlex-7090 \
--to=rkannoth@marvell.com \
--cc=ajithpv.linux@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=jmaloy@redhat.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=tipc-discussion@lists.sourceforge.net \
--cc=tung.quang.nguyen@est.tech \
/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®