[PATCH 6.12 206/423] selftests/mm/cow: fix the incorrect error handling