[PATCH 5.15 131/567] s390/mem_detect: fix detect_memory() error handling