[PATCH 5.15.y 1/4] mm: avoid unsafe VMA hook invocation when error arises on mmap hook