]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/lguest/x86/core.c
lguest: compile fixes
[mirror_ubuntu-artful-kernel.git] / drivers / lguest / x86 / core.c
index bd4b5910473b508692489b1d6bdcc5a403b69b35..9f1659c3d1f3fc895beaa4f30925e66eb55e662b 100644 (file)
@@ -91,7 +91,7 @@ static void copy_in_guest_info(struct lg_cpu *cpu, struct lguest_pages *pages)
         * Guest has changed.
         */
        if (__this_cpu_read(lg_last_cpu) != cpu || cpu->last_pages != pages) {
-               __this_cpu_read(lg_last_cpu) = cpu;
+               __this_cpu_write(lg_last_cpu, cpu);
                cpu->last_pages = pages;
                cpu->changed = CHANGED_ALL;
        }