|
@@ -86,7 +86,12 @@ void __init acpi_watchdog_init(void)
|
|
|
|
|
|
found = false;
|
|
|
resource_list_for_each_entry(rentry, &resource_list) {
|
|
|
- if (resource_contains(rentry->res, &res)) {
|
|
|
+ if (rentry->res->flags == res.flags &&
|
|
|
+ resource_overlaps(rentry->res, &res)) {
|
|
|
+ if (res.start < rentry->res->start)
|
|
|
+ rentry->res->start = res.start;
|
|
|
+ if (res.end > rentry->res->end)
|
|
|
+ rentry->res->end = res.end;
|
|
|
found = true;
|
|
|
break;
|
|
|
}
|