diff options
author | 2019-03-12 12:04:16 +0530 | |
---|---|---|
committer | 2019-03-12 12:04:16 +0530 | |
commit | 1602a335708ae396e8bcc0c430d8e3d90254881f (patch) | |
tree | 8e5b00a0099381a2fa1d0f3f5140ea7a28824ea3 /drivers/dma | |
parent | Merge branch 'topic/k3dma' into for-linus (diff) | |
parent | dmaengine: mv_xor: Fix a missing check in mv_xor_channel_add (diff) | |
download | linux-1602a335708ae396e8bcc0c430d8e3d90254881f.tar.gz linux-1602a335708ae396e8bcc0c430d8e3d90254881f.tar.bz2 linux-1602a335708ae396e8bcc0c430d8e3d90254881f.zip |
Merge branch 'topic/mv' into for-linus
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/mv_xor.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index fe4a7c71fede..65af2e7fcb2c 100644 --- a/drivers/dma/mv_xor.c +++ b/drivers/dma/mv_xor.c @@ -1153,7 +1153,10 @@ mv_xor_channel_add(struct mv_xor_device *xordev, dma_has_cap(DMA_MEMCPY, dma_dev->cap_mask) ? "cpy " : "", dma_has_cap(DMA_INTERRUPT, dma_dev->cap_mask) ? "intr " : ""); - dma_async_device_register(dma_dev); + ret = dma_async_device_register(dma_dev); + if (ret) + goto err_free_irq; + return mv_chan; err_free_irq: |