sparc: add checks for the return value of memblock_alloc*()