diff options
| -rw-r--r-- | arch/powerpc/mm/tlb_nohash.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/mm/tlb_nohash.c b/arch/powerpc/mm/tlb_nohash.c index f38ea4df6a85..ab0616b0e6c2 100644 --- a/arch/powerpc/mm/tlb_nohash.c +++ b/arch/powerpc/mm/tlb_nohash.c | |||
| @@ -284,8 +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)) | ||
| 288 | return; | ||
| 289 | |||
| 287 | preempt_disable(); | 290 | preempt_disable(); |
| 288 | pid = mm ? mm->context.id : 0; | 291 | pid = mm->context.id; |
| 289 | if (unlikely(pid == MMU_NO_CONTEXT)) | 292 | if (unlikely(pid == MMU_NO_CONTEXT)) |
| 290 | goto bail; | 293 | goto bail; |
| 291 | cpu_mask = mm_cpumask(mm); | 294 | cpu_mask = mm_cpumask(mm); |
