Title: [8952] trunk/arch/blackfin/include/asm/mmu_context.h: blackfin: restore L1 base address and length to 0 after free
Revision
8952
Author
bhsong
Date
2010-06-29 04:55:29 -0400 (Tue, 29 Jun 2010)

Log Message

blackfin: restore L1 base address and length to 0 after free

Modified Paths


Diff

Modified: trunk/arch/blackfin/include/asm/mmu_context.h (8951 => 8952)


--- trunk/arch/blackfin/include/asm/mmu_context.h	2010-06-29 08:43:38 UTC (rev 8951)
+++ trunk/arch/blackfin/include/asm/mmu_context.h	2010-06-29 08:55:29 UTC (rev 8952)
@@ -30,8 +30,11 @@
 static inline void free_l1stack(void)
 {
 	nr_l1stack_tasks--;
-	if (nr_l1stack_tasks == 0)
+	if (nr_l1stack_tasks == 0) {
 		l1sram_free(l1_stack_base);
+		l1_stack_base = NULL;
+		l1_stack_len = 0;
+	}
 }
 
 static inline unsigned long
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to