Skip to contentSkip to conversation

typo in mmu_context.h

PATCH New Jun Sun 1 participant 1 message Oct 28, 2002 MIPS

lore
Share & tools
lore

Jun Sun

author
#0 lore raw

PATCH 1/1 typo in mmu_context.h

Rather obviously ....

include/asm-mips/mmu_context.h renamed from include/asm-mips/mmu_context.h.orig +1 -1
diff -Nru link/include/asm-mips/mmu_context.h.orig link/include/asm-mips/mmu_context.h
@@ -83,7 +83,7 @@
 init_new_context(struct task_struct *tsk, struct mm_struct *mm)
 {
 #ifdef CONFIG_SMP
-	mm->context = malloc(smp_num_cpus * sizeof(unsigned long), GFP_KERNEL);
+	mm->context = kmalloc(smp_num_cpus * sizeof(unsigned long), GFP_KERNEL);
 	/*
  	 * Init the "context" values so that a tlbpid allocation
 	 * happens on the first switch.