[PATCH 6.14 521/731] selftests/mm/cow: fix the incorrect error handling