dmaengine: cpp41: Fix handling of error path