firmware: dmi: Change size of dmi_ids_string[] to 256

Message ID 1677030901-29326-1-git-send-email-yangtiezhu@loongson.cn
State New
Headers
Series firmware: dmi: Change size of dmi_ids_string[] to 256 |

Commit Message

Tiezhu Yang Feb. 22, 2023, 1:55 a.m. UTC
  The current size of dmi_ids_string[] is 128, the BIOS date
can not be seen if the total string length of system vendor,
product name, board name, BIOS version and BIOS date is too
long to over 128, it is better and enough to change size of
dmi_ids_string[] to 256 for most cases.

Without this patch:

[    0.000000] DMI: Loongson Loongson-3A5000-7A1000-1w-A2101/Loongson-LS3A5000-7A1000-1w-A2101, BIOS vUDK2018-LoongArch-V4.0.05132-beta10 12/13/202

With this patch:

[    0.000000] DMI: Loongson Loongson-3A5000-7A1000-1w-A2101/Loongson-LS3A5000-7A1000-1w-A2101, BIOS vUDK2018-LoongArch-V4.0.05132-beta10 12/13/2022

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
 drivers/firmware/dmi_scan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c
index 015c95a..37c39f9 100644
--- a/drivers/firmware/dmi_scan.c
+++ b/drivers/firmware/dmi_scan.c
@@ -32,7 +32,7 @@  static u8 smbios_entry_point[32];
 static int smbios_entry_point_size;
 
 /* DMI system identification string used during boot */
-static char dmi_ids_string[128] __initdata;
+static char dmi_ids_string[256] __initdata;
 
 static struct dmi_memdev_info {
 	const char *device;