Commit 12ac2444 authored by Tony Luck's avatar Tony Luck Committed by Tony Luck

[IA64] uninitialised flags element could cause crashes

window is not zeroed, so the flags should be assigned, not modified.
This can lead to crashes at boot if the IO and Memory resources overlap.

Patch supplied by Matthew Wilcox
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent f22e2f38
......@@ -275,7 +275,7 @@ add_window (struct acpi_resource *res, void *data)
return AE_OK;
window = &info->controller->window[info->controller->windows++];
window->resource.flags |= flags;
window->resource.flags = flags;
window->resource.start = addr.min_address_range;
window->resource.end = addr.max_address_range;
window->offset = offset;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment