Lines 5226-5233
Link Here
|
5226 |
info->eedump_len = tp->eeprom_len; |
5226 |
info->eedump_len = tp->eeprom_len; |
5227 |
BUILD_BUG_ON(sizeof(info->fw_version) < sizeof(rtl_fw->version)); |
5227 |
BUILD_BUG_ON(sizeof(info->fw_version) < sizeof(rtl_fw->version)); |
5228 |
if (rtl_fw) |
5228 |
if (rtl_fw) |
5229 |
strlcpy(info->fw_version, rtl_fw->version, |
5229 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,8,0) |
5230 |
sizeof(info->fw_version)); |
5230 |
strlcpy(info->fw_version, rtl_fw->version, |
|
|
5231 |
sizeof(info->fw_version)); |
5232 |
#else |
5233 |
strscpy(info->fw_version, rtl_fw->version, |
5234 |
sizeof(info->fw_version)); |
5235 |
#endif |
5231 |
} |
5236 |
} |
5232 |
|
5237 |
|
5233 |
static int |
5238 |
static int |