diff --git a/mm/mmu_notifier.c b/mm/mmu_notifier.c index 4fc918163dd32de7cc12b65755fc20090a0ff7ac..5654dd19addc0fd58e3b48e07471e53959d82ef3 100644 --- a/mm/mmu_notifier.c +++ b/mm/mmu_notifier.c @@ -913,7 +913,7 @@ static int __mmu_interval_notifier_insert( return -EOVERFLOW; /* Must call with a mmget() held */ - if (WARN_ON(atomic_read(&mm->mm_count) <= 0)) + if (WARN_ON(atomic_read(&mm->mm_users) <= 0)) return -EINVAL; /* pairs with mmdrop in mmu_interval_notifier_remove() */