[PATCH v2] selftests/mm/cow: Fix the incorrect error handling