KVM: x86 emulator: fix smsw and lmsw with a memory operand
[sfrench/cifs-2.6.git] / arch / x86 / kernel / crash_dump_32.c
index 3f532df488bca29e3cd03be11205df9d3d2808ac..72d0c56c1b48eff12779b557a75f3aee376c5571 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     kernel/crash_dump.c - Memory preserving reboot related code.
+ *     Memory preserving reboot related code.
  *
  *     Created by: Hariprasad Nellitheertha (hari@in.ibm.com)
  *     Copyright (C) IBM Corporation, 2004. All rights reserved
@@ -47,6 +47,7 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf,
                if (!kdump_buf_page) {
                        printk(KERN_WARNING "Kdump: Kdump buffer page not"
                                " allocated\n");
+                       kunmap_atomic(vaddr, KM_PTE0);
                        return -EFAULT;
                }
                copy_page(kdump_buf_page, vaddr);