Re: [PATCH next] drivers/infiniband/hw/mlx5/data_direct: Use strscpy() to copy strings into arrays
From: Jason Gunthorpe
Date: Tue Jun 09 2026 - 15:02:42 EST
On Mon, Jun 08, 2026 at 10:54:57AM +0100, david.laight.linux@xxxxxxxxx wrote:
> From: David Laight <david.laight.linux@xxxxxxxxx>
>
> Replacing strcpy() with strscpy() ensures that overflow of the target
> buffer cannot happen.
>
> Signed-off-by: David Laight <david.laight.linux@xxxxxxxxx>
> ---
> drivers/infiniband/hw/mlx5/data_direct.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to for-next
Thanks
Jason