From 54693b3ff35d4a971091996d04d95727ab10ce49 Mon Sep 17 00:00:00 2001 From: Martin Pecka Date: Wed, 3 Apr 2024 23:53:43 +0200 Subject: [PATCH] Fixed build on kernels 6.8+ --- r8152.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r8152.c b/r8152.c index ec113ae..ca669fe 100644 --- a/r8152.c +++ b/r8152.c @@ -19690,7 +19690,7 @@ static int rtltool_ioctl(struct r8152 *tp, struct ifreq *ifr) uinfo->idVendor = __le16_to_cpu(udev->descriptor.idVendor); uinfo->idProduct = __le16_to_cpu(udev->descriptor.idProduct); uinfo->bcdDevice = __le16_to_cpu(udev->descriptor.bcdDevice); - strlcpy(uinfo->devpath, udev->devpath, sizeof(udev->devpath)); + strscpy(uinfo->devpath, udev->devpath, sizeof(udev->devpath)); pla_ocp_read(tp, PLA_IDR, sizeof(uinfo->dev_addr), uinfo->dev_addr);