diff --git a/fs/exec.c b/fs/exec.c index 6518e33ea813..3e810badf9ab 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1037,7 +1037,8 @@ static int exec_mmap(struct mm_struct *mm) mmput(old_mm); return 0; } - mmdrop_lazy_tlb(active_mm); + if (active_mm) + mmdrop_lazy_tlb(active_mm); return 0; }