diff options
-rw-r--r-- | arch/x86/platform/uv/bios_uv.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/x86/platform/uv/bios_uv.c b/arch/x86/platform/uv/bios_uv.c index 66b2166ea4a1..4e9fd1378aec 100644 --- a/arch/x86/platform/uv/bios_uv.c +++ b/arch/x86/platform/uv/bios_uv.c | |||
@@ -199,12 +199,14 @@ void uv_bios_init(void) | |||
199 | return; | 199 | return; |
200 | } | 200 | } |
201 | 201 | ||
202 | /* Starting with UV4 the UV systab size is variable */ | ||
202 | if (uv_systab->revision >= UV_SYSTAB_VERSION_UV4) { | 203 | if (uv_systab->revision >= UV_SYSTAB_VERSION_UV4) { |
204 | int size = uv_systab->size; | ||
205 | |||
203 | iounmap(uv_systab); | 206 | iounmap(uv_systab); |
204 | uv_systab = ioremap(efi.uv_systab, uv_systab->size); | 207 | uv_systab = ioremap(efi.uv_systab, size); |
205 | if (!uv_systab) { | 208 | if (!uv_systab) { |
206 | pr_err("UV: UVsystab: ioremap(%d) failed!\n", | 209 | pr_err("UV: UVsystab: ioremap(%d) failed!\n", size); |
207 | uv_systab->size); | ||
208 | return; | 210 | return; |
209 | } | 211 | } |
210 | } | 212 | } |