[PATCH openEuler-5.10 108/113] dmaengine: sh: rcar-dmac: Check for error num after dma_set_max_seg_size