From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: 陈学兵 <chenxuebing@jari.cn>
Cc: catalin.marinas@arm.com, rdunlap@infradead.org, rppt@kernel.org,
rafael.j.wysocki@intel.com, linux-mips@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mips: setup: use strscpy to replace strlcpy
Date: Mon, 23 May 2022 11:39:40 +0200 [thread overview]
Message-ID: <20220523093940.GA6296@alpha.franken.de> (raw)
In-Reply-To: <533ed227.9dd.180eabb3189.Coremail.chenxuebing@jari.cn>
On Sun, May 22, 2022 at 03:46:18PM +0800, 陈学兵 wrote:
>
> The strlcpy should not be used because it doesn't limit the source
> length. Preferred is strscpy.
>
> Signed-off-by: XueBing Chen <chenxuebing@jari.cn>
> ---
> arch/mips/kernel/setup.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
applied to mips-next.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
prev parent reply other threads:[~2022-05-23 10:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-22 7:46 [PATCH] mips: setup: use strscpy to replace strlcpy 陈学兵
2022-05-23 9:39 ` Thomas Bogendoerfer [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=20220523093940.GA6296@alpha.franken.de \
--to=tsbogend@alpha.franken.de \
--cc=catalin.marinas@arm.com \
--cc=chenxuebing@jari.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
--cc=rdunlap@infradead.org \
--cc=rppt@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;
as well as URLs for NNTP newsgroup(s).