]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/mm/mmu_context_64.c
Merge trivial low-risk suspend hotkey bugzilla-5918 into release
[linux-2.6-omap-h63xx.git] / arch / powerpc / mm / mmu_context_64.c
index 65d18dca266ff0e3b26ed1212ca3da5990ee150c..90a06ac02d5e5f35f44adf4366cc016b473463ee 100644 (file)
@@ -10,7 +10,6 @@
  *
  */
 
-#include <linux/config.h>
 #include <linux/sched.h>
 #include <linux/kernel.h>
 #include <linux/errno.h>
@@ -44,7 +43,9 @@ again:
                return err;
 
        if (index > MAX_CONTEXT) {
+               spin_lock(&mmu_context_lock);
                idr_remove(&mmu_context_idr, index);
+               spin_unlock(&mmu_context_lock);
                return -ENOMEM;
        }