patch-2.4.23 linux-2.4.23/arch/alpha/kernel/sys_nautilus.c

Next file: linux-2.4.23/arch/alpha/mm/init.c
Previous file: linux-2.4.23/arch/alpha/kernel/setup.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/arch/alpha/kernel/sys_nautilus.c linux-2.4.23/arch/alpha/kernel/sys_nautilus.c
@@ -226,11 +226,13 @@
 	if (request_resource(&iomem_resource, bus->resource[1]) < 0)
 		printk(KERN_ERR "Failed to request MEM on hose 0\n");
 
-	if (pci_mem < memtop && pci_mem > alpha_mv.min_mem_address) {
+	if (pci_mem < memtop)
+		memtop = pci_mem;
+	if (memtop > alpha_mv.min_mem_address) {
 		free_reserved_mem(__va(alpha_mv.min_mem_address),
-				  __va(pci_mem));
+				  __va(memtop));
 		printk("nautilus_init_pci: %ldk freed\n",
-			(pci_mem - alpha_mv.min_mem_address) >> 10);
+			(memtop - alpha_mv.min_mem_address) >> 10);
 	}
 
 	if ((IRONGATE0->dev_vendor >> 16) > 0x7006)	/* Albacore? */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)