]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
x86, UV: system table in bios accessed after unmap
authorRuss Anderson <rja@sgi.com>
Mon, 30 Mar 2009 22:52:40 +0000 (17:52 -0500)
committerIngo Molnar <mingo@elte.hu>
Fri, 3 Apr 2009 17:25:57 +0000 (19:25 +0200)
Use the copy of UV system table in kernel memory, not the one in
bios after unmapping.

Signed-off-by: Russ Anderson <rja@sgi.com>
LKML-Reference: <20090330225240.GA22776@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/bios_uv.c

index f63882728d91868d3ce392aa87bc7965e8e9145c..63a88e1f987d35b9ff94ccbd2d53d499b5c783ee 100644 (file)
@@ -182,7 +182,8 @@ void uv_bios_init(void)
        memcpy(&uv_systab, tab, sizeof(struct uv_systab));
        iounmap(tab);
 
-       printk(KERN_INFO "EFI UV System Table Revision %d\n", tab->revision);
+       printk(KERN_INFO "EFI UV System Table Revision %d\n",
+                                       uv_systab.revision);
 }
 #else  /* !CONFIG_EFI */