[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <175741904219.708611.9150229525222115606.b4-ty@kernel.org>
Date: Tue, 09 Sep 2025 07:57:22 -0400
From: Leon Romanovsky <leon@...nel.org>
To: Selvin Xavier <selvin.xavier@...adcom.com>,
Kalesh AP <kalesh-anakkur.purayil@...adcom.com>,
Jason Gunthorpe <jgg@...pe.ca>, Thorsten Blum <thorsten.blum@...ux.dev>
Cc: linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] RDMA/bnxt_re: Call strscpy() with correct size
argument
On Mon, 01 Sep 2025 17:00:39 +0200, Thorsten Blum wrote:
> In bnxt_re_register_ib(), strscpy() is called with the length of the
> source string rather than the size of the destination buffer.
>
> This is fine as long as the destination buffer is larger than the source
> string, but we should still use the destination buffer size instead to
> call strscpy() as intended. And since 'node_desc' has a fixed size, we
> can safely omit the size argument and let strscpy() infer it using
> sizeof().
>
> [...]
Applied, thanks!
[1/1] RDMA/bnxt_re: Call strscpy() with correct size argument
https://git.kernel.org/rdma/rdma/c/9eda7148f0f78f
Best regards,
--
Leon Romanovsky <leon@...nel.org>
Powered by blists - more mailing lists