projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[POWERPC] Fix idr locking in init_new_context
[powerpc.git]
/
arch
/
powerpc
/
mm
/
mmu_context_64.c
diff --git
a/arch/powerpc/mm/mmu_context_64.c
b/arch/powerpc/mm/mmu_context_64.c
index
65d18dc
..
e2051ef
100644
(file)
--- a/
arch/powerpc/mm/mmu_context_64.c
+++ b/
arch/powerpc/mm/mmu_context_64.c
@@
-44,7
+44,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;
}