[PATCH 6.2 0259/1001] s390/mem_detect: fix detect_memory() error handling