|
@@ -8878,13 +8878,13 @@ static int __must_check __init get_thinkpad_model_data(
|
|
}
|
|
}
|
|
|
|
|
|
s = dmi_get_system_info(DMI_PRODUCT_VERSION);
|
|
s = dmi_get_system_info(DMI_PRODUCT_VERSION);
|
|
- if (s && !(strnicmp(s, "ThinkPad", 8) && strnicmp(s, "Lenovo", 6))) {
|
|
|
|
|
|
+ if (s && !(strncasecmp(s, "ThinkPad", 8) && strncasecmp(s, "Lenovo", 6))) {
|
|
tp->model_str = kstrdup(s, GFP_KERNEL);
|
|
tp->model_str = kstrdup(s, GFP_KERNEL);
|
|
if (!tp->model_str)
|
|
if (!tp->model_str)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
} else {
|
|
} else {
|
|
s = dmi_get_system_info(DMI_BIOS_VENDOR);
|
|
s = dmi_get_system_info(DMI_BIOS_VENDOR);
|
|
- if (s && !(strnicmp(s, "Lenovo", 6))) {
|
|
|
|
|
|
+ if (s && !(strncasecmp(s, "Lenovo", 6))) {
|
|
tp->model_str = kstrdup(s, GFP_KERNEL);
|
|
tp->model_str = kstrdup(s, GFP_KERNEL);
|
|
if (!tp->model_str)
|
|
if (!tp->model_str)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|