|
@@ -977,7 +977,7 @@ bool acpi_can_fallback_to_crs(struct acpi_device *adev, const char *con_id)
|
|
lookup = kmalloc(sizeof(*lookup), GFP_KERNEL);
|
|
lookup = kmalloc(sizeof(*lookup), GFP_KERNEL);
|
|
if (lookup) {
|
|
if (lookup) {
|
|
lookup->adev = adev;
|
|
lookup->adev = adev;
|
|
- lookup->con_id = con_id;
|
|
|
|
|
|
+ lookup->con_id = kstrdup(con_id, GFP_KERNEL);
|
|
list_add_tail(&lookup->node, &acpi_crs_lookup_list);
|
|
list_add_tail(&lookup->node, &acpi_crs_lookup_list);
|
|
}
|
|
}
|
|
}
|
|
}
|