[PATCH 15/30 for 5.4] dma-direct: consolidate the error handling in dma_direct_alloc_pages