From 12ac2444cc34dbdeac9031dff09bebf6cf8428a4 Mon Sep 17 00:00:00 2001 From: Tony Luck Date: Wed, 20 Oct 2004 06:37:21 +0000 Subject: [PATCH] [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: Tony Luck --- arch/ia64/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index 9a5f1baf4745c..36d81e82d088e 100644 --- a/arch/ia64/pci/pci.c +++ b/arch/ia64/pci/pci.c @@ -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; -- 2.53.0