[PATCH openEuler-5.10 106/113] dmaengine: sh: rcar-dmac: Check for error num after setting mask