diff options
| -rw-r--r-- | arch/powerpc/mm/tlb_nohash.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/powerpc/mm/tlb_nohash.c b/arch/powerpc/mm/tlb_nohash.c index ab0616b0e6c2..cbd3d069897f 100644 --- a/arch/powerpc/mm/tlb_nohash.c +++ b/arch/powerpc/mm/tlb_nohash.c | |||
| @@ -284,7 +284,11 @@ void __flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr, | |||
| 284 | struct cpumask *cpu_mask; | 284 | struct cpumask *cpu_mask; |
| 285 | unsigned int pid; | 285 | unsigned int pid; |
| 286 | 286 | ||
| 287 | if (unlikely(!mm)) | 287 | /* |
| 288 | * This function as well as __local_flush_tlb_page() must only be called | ||
| 289 | * for user contexts. | ||
| 290 | */ | ||
| 291 | if (unlikely(WARN_ON(!mm))) | ||
| 288 | return; | 292 | return; |
| 289 | 293 | ||
| 290 | preempt_disable(); | 294 | preempt_disable(); |
